Pārlūkot izejas kodu

物流单编辑调整

qymljy 5 mēneši atpakaļ
vecāks
revīzija
92ea538900

+ 19 - 3
src/HDrpManagement/logistics/details/index.vue

@@ -25,7 +25,7 @@
         </div>
         <div slot="slot1" >
           <dispatchTable ref="dispatch" @onInit="onInit" @rowClick="rowClick" :needQuery="true"></dispatchTable>
-          <dismx ref="dismx" style="margin-top: 10px" type="edit" :status="mainData.status"></dismx>
+          <dismx ref="dismx" style="margin-top: 10px" type="edit" :status="mainData.status" :logistics_qty_editable="logistics_qty_editable"></dismx>
         </div>
         <div  slot="slot2">
           <addBox v-if="tool.checkAuth($route.name,'addBoxInfo') && mainData.status == '新建'" class="mt-10" @onSuccess="onBoxSuccess"></addBox>
@@ -56,7 +56,9 @@
     data() {
       return {
         mainData:'',
-        mainAreaData:{}
+        mainAreaData:{},
+        siteid:JSON.parse(sessionStorage.getItem('active_account')).siteid,
+        logistics_qty_editable:0
       }
     },
     components:{
@@ -230,11 +232,25 @@
       },
       onInit (data) {
         this.$refs.dismx.listData(data.sa_orderid,data.sa_logistics_itemsid)
+      },
+      async queryEdit(){
+        const res = await this.$api.requested({
+          classname: "sysmanage.site.site",
+          method: "querySite_Parameter",
+          content:{
+            siteid:this.siteid
+          }
+        })
+        if (res.code == 0){
+          this.tool.showMessage(res,()=>{})
+        }else {
+          this.logistics_qty_editable = res.data.logistics_qty_editable
+        }
       }
     },
     mounted () {
       this.queryMainData(this.$route.query.id)
-
+      this.queryEdit()
     },
     created() {
     }

+ 2 - 2
src/HDrpManagement/logistics/modules/productlist.vue

@@ -47,7 +47,7 @@
       <el-table-column
         :label="$t(`数量`)">
         <template slot-scope="scope">
-           <el-input-number :controls="true" controls-position='right' :step-strictly="true" v-if="type === 'edit' && tool.checkAuth($route.name,'update') && status == '新建'" size="mini" v-model="scope.row.qty" :min="1" :step="scope.row.orderaddqty" :label="$t(`输入数量`)" @change="qtyChange(scope.row,scope.$index)"></el-input-number>
+           <el-input-number :controls="true" controls-position='right' :step-strictly="true" v-if="type === 'edit' && tool.checkAuth($route.name,'update') && status == '新建' && logistics_qty_editable" size="mini" v-model="scope.row.qty" :min="1" :step="scope.row.orderaddqty" :label="$t(`输入数量`)" @change="qtyChange(scope.row,scope.$index)"></el-input-number>
           <span v-else>{{scope.row.qty}}</span>
         </template>
       </el-table-column>
@@ -89,7 +89,7 @@
 
 <script>
 export default {
-  props:['type','status'],
+  props:['type','status','logistics_qty_editable'],
   data () {
     return {
       tableData:[],