Преглед изворни кода

审核按钮显示条件更改

lichao пре 3 година
родитељ
комит
2b3338cf64

+ 1 - 1
src/views/Warehousing/inStock/AddOrUpdate.vue

@@ -5869,7 +5869,7 @@
       >
       <el-button
           type="primary"
-          v-if="approVal == true && form.fBillstatus == 4"
+          v-if="approVal == true && form.fBillstatus >= 4 && form.fBillstatus < 6"
           @click="addOrUpdateHand(form, 'f_billstatus')"
       >审批
       </el-button

+ 5 - 5
src/views/Warehousing/outStock/AddOrUpdate.vue

@@ -1363,7 +1363,7 @@
             </template>
           </el-table-column>
           <el-table-column
-              prop="fUnitprice"
+              prop="fQty"
               header-align="center"
               align="center"
               width="130px"
@@ -1372,7 +1372,7 @@
             <template slot-scope="scope">
               <el-input
                   oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
-                  v-model="scope.row.fUnitprice"
+                  v-model="scope.row.fQty"
                   placeholder="数量"
                   :disabled="browseStatus"
                   @change="changeContractAmt(scope.row)"
@@ -1381,7 +1381,7 @@
             </template>
           </el-table-column>
           <el-table-column
-              prop="fQty"
+              prop="fUnitprice"
               header-align="center"
               align="center"
               width="130px"
@@ -1390,7 +1390,7 @@
             <template slot-scope="scope">
               <el-input
                   oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
-                  v-model="scope.row.fQty"
+                  v-model="scope.row.fUnitprice"
                   placeholder="单价"
                   :disabled="browseStatus || scope.row.fSrcTypeId !== 0"
                   @change="changeContractAmt(scope.row)"
@@ -3689,7 +3689,7 @@
       >
       <el-button
           type="primary"
-          v-if="approVal == true && form.fBillstatus == 4"
+          v-if="approVal == true && form.fBillstatus >= 4 && form.fBillstatus < 6"
           @click="addOrUpdateHand(form, 'f_billstatus')"
       >审批
       </el-button