lilei 2 年 前
コミット
5276964bc1

+ 4 - 1
src/views/supplierManagement/costSetting/list.vue

@@ -218,7 +218,10 @@ export default {
     },
     // 批量审核
     handleBatchAudit () {
-
+      if (!this.rowSelectionInfo || (this.rowSelectionInfo && this.rowSelectionInfo.selectedRowKeys.length < 1)) {
+        this.$message.warning('请在列表中进行勾选!')
+        return false
+      }
     },
     // 单个审核
     handleAudit (row) {

+ 6 - 2
src/views/supplierManagement/costSetting/settingCost.vue

@@ -26,7 +26,10 @@
           <a-form-model-item style="margin-bottom:10px;" label="供应商名称">
             {{ supplierName }}
           </a-form-model-item>
-          <a-form-model-item label="成本价" prop="cost">
+          <a-form-model-item style="margin-bottom:10px;" label="原成本价">
+            {{ cost||'--' }}
+          </a-form-model-item>
+          <a-form-model-item label="变更成本价" prop="cost">
             <a-input-number
               id="setting-cost"
               v-model="form.cost"
@@ -76,6 +79,7 @@ export default {
       productName: '',
       productCode: '',
       supplierName: '',
+      cost: '',
       form: {
         supplierSn: '',
         supplierProductSn: '',
@@ -92,7 +96,7 @@ export default {
     setData (row) {
       this.form.supplierSn = row.supplierSn
       this.form.supplierProductSn = row.supplierProductSn
-      this.form.cost = row.cost
+      this.cost = row.cost
       this.productName = row.product.name
       this.productCode = row.product.code
       this.supplierName = row.supplierName