DELL 3 лет назад
Родитель
Сommit
adc886bf3c
2 измененных файлов с 1 добавлено и 2 удалено
  1. 1 1
      src/views/business/goods/add.vue
  2. 0 1
      src/views/business/goods/components/spec.vue

+ 1 - 1
src/views/business/goods/add.vue

@@ -104,7 +104,7 @@
         </el-col>
         <el-col :span="23">
           <el-form-item label="商品编码:" prop="goodsCode">
-            <el-input v-model="addData.goodsCode" type="number" placeholder="请输入商品编码">
+            <el-input v-model="addData.goodsCode" type="text" placeholder="请输入商品编码">
             </el-input>
           </el-form-item>
         </el-col>

+ 0 - 1
src/views/business/goods/components/spec.vue

@@ -168,7 +168,6 @@ export default {
       this.specListTmp = JSON.parse(JSON.stringify(this.specList))
       this.skuList = sku.map(item => {
         this.$set(item, 'valueY', accDiv(item.value, 100))
-        this.$set(item, 'skuCode', accDiv(item.skuCode, 1))
         this.$set(item, 'exchange', accDiv(item.exchangePrice,1))
         this.$set(item, 'costY', item.cost == null ? '' : accDiv(item.cost, 100) )
         this.$set(item, 'picUrlArr', item.picUrl.split(',').map(item => { return { fileName: item }}))