Browse Source

修改bug

web100 2 năm trước cách đây
mục cha
commit
0bff02c72f

+ 4 - 4
src/views/tirePartsMall/basicData/listingManagement/index.vue

@@ -240,7 +240,7 @@ export default {
           overHidden: true,
           overHidden: true,
         }, {
         }, {
           label: "共享公司",
           label: "共享公司",
-          prop: "salesCompanyName",
+          prop: "sharedCompany",
           // searchProp: "sharedCompanyList",
           // searchProp: "sharedCompanyList",
           search: true,
           search: true,
           overHidden: true,
           overHidden: true,
@@ -314,9 +314,9 @@ export default {
       console.log(params);
       console.log(params);
       console.log(params.$salesCompanyName);
       console.log(params.$salesCompanyName);
       // sharedCompanyList
       // sharedCompanyList
-      this.search.sharedCompanyList = params.salesCompanyName;
-      Vue.delete(params, 'salesCompanyName');
-      Vue.delete(this.search, 'salesCompanyName');
+      this.search.sharedCompanyList = params.sharedCompany;
+      Vue.delete(params, 'sharedCompany');
+      Vue.delete(this.search, 'sharedCompany');
       done();
       done();
       this.onLoad(this.page, params)
       this.onLoad(this.page, params)
     },
     },

+ 21 - 3
src/views/tirePartsMall/purchasingManagement/warehouseEntryOrder/detailsPage.vue

@@ -7,9 +7,9 @@
                 </el-button>
                 </el-button>
             </div>
             </div>
             <div class="add-customer-btn">
             <div class="add-customer-btn">
-                <!--        <el-button class="el-button&#45;&#45;small-yh" style="margin-right: 10px" type="primary" size="small" v-if="!editButton"-->
-                <!--                   @click="confirmEditing">编辑-->
-                <!--        </el-button>-->
+                       <el-button class="el-button&#45;&#45;small-yh" style="margin-right: 10px" type="primary" size="small" v-if="!editButton"
+                                  @click="confirmEditing">编辑
+                       </el-button>
                 <el-button class="el-button--small-yh" type="primary" size="small" v-if="form.statusName != '已入库'"
                 <el-button class="el-button--small-yh" type="primary" size="small" v-if="form.statusName != '已入库'"
                     @click="editCustomer">保存数据
                     @click="editCustomer">保存数据
                 </el-button>
                 </el-button>
@@ -271,6 +271,7 @@ export default {
                 index: true,
                 index: true,
                 menu: true,
                 menu: true,
                 dialogTop: 25,
                 dialogTop: 25,
+                disabled:false,
                 dialogWidth: "80%",
                 dialogWidth: "80%",
                 column: [{
                 column: [{
                     label: '商品名称',
                     label: '商品名称',
@@ -436,6 +437,7 @@ export default {
                     {
                     {
                         prop: "remarks",
                         prop: "remarks",
                         label: "备注",
                         label: "备注",
+                        disabled:false,
                         overHidden: true,
                         overHidden: true,
                         cell: true
                         cell: true
                     }
                     }
@@ -511,7 +513,11 @@ export default {
         this.key++
         this.key++
         if (this.onLoad.id && this.detailData.id) {
         if (this.onLoad.id && this.detailData.id) {
             this.refresh(this.onLoad.id, true)
             this.refresh(this.onLoad.id, true)
+            this.$set(this.optionForm,'disabled',true)
+            this.$set(this.optionContacts,'disabled',true)
+
         } else if (this.onLoad.id) {
         } else if (this.onLoad.id) {
+            console.log(2);
             this.refresh(this.onLoad.id, true)
             this.refresh(this.onLoad.id, true)
         }
         }
     },
     },
@@ -561,6 +567,18 @@ export default {
                 }
                 }
             })
             })
         },
         },
+        //编辑
+        confirmEditing(){
+            this.$set(this.optionForm,'disabled',false)
+            this.$set(this.optionContacts,'disabled',false)
+            if(this.form.statusName == '待入库'){
+                this.optionContacts.column.forEach(item=>{
+                    if(item.prop == remarks){
+                        item.disabled = false
+                    }
+                })
+            }
+        },
         complete() {
         complete() {
             this.$refs["form"].validate((valid, done) => {
             this.$refs["form"].validate((valid, done) => {
                 done();
                 done();

+ 46 - 29
src/views/tirePartsMall/salesManagement/outboundWorkOrder/detailsPage.vue

@@ -7,16 +7,17 @@
         </el-button>
         </el-button>
       </div>
       </div>
       <div class="add-customer-btn">
       <div class="add-customer-btn">
-        <!--        <el-button class="el-button&#45;&#45;small-yh" style="margin-right: 10px" type="primary" size="small" v-if="!editButton"-->
-        <!--                   @click="confirmEditing">编辑-->
-        <!--        </el-button>-->
+        <el-button class="el-button&#45;&#45;small-yh" style="margin-right: 10px" type="primary" size="small"
+          v-if="!editButton" @click="confirmEditing">编辑
+        </el-button>
         <el-button class="el-button--small-yh" type="warning" size="small" v-if="form.statusName == '已出库'"
         <el-button class="el-button--small-yh" type="warning" size="small" v-if="form.statusName == '已出库'"
           @click="revoke">撤销出库
           @click="revoke">撤销出库
         </el-button>
         </el-button>
-        <el-button class="el-button--small-yh" type="primary" size="small" @click="editCustomer" v-if="form.statusName !== '已出库'">保存数据
+        <el-button class="el-button--small-yh" type="primary" size="small" @click="editCustomer"
+          v-if="form.statusName !== '已出库'">保存数据
         </el-button>
         </el-button>
-        <el-button class="el-button--small-yh" type="success" size="small" style="margin-left: 6px;" v-if="form.statusName == '待出库' || form.statusName == '撤销出库'"
-          @click="complete">出库完成
+        <el-button class="el-button--small-yh" type="success" size="small" style="margin-left: 6px;"
+          v-if="form.statusName == '待出库' || form.statusName == '撤销出库'" @click="complete">出库完成
         </el-button>
         </el-button>
       </div>
       </div>
     </div>
     </div>
@@ -61,18 +62,14 @@
           </el-tab-pane>
           </el-tab-pane>
         </el-tabs>
         </el-tabs>
       </trade-card>
       </trade-card>
-      <report-dialog
-              :switchDialog="switchDialog"
-              :reportId="form.id"
-              @onClose="onClose()"
-            ></report-dialog>
+      <report-dialog :switchDialog="switchDialog" :reportId="form.id" @onClose="onClose()"></report-dialog>
     </div>
     </div>
   </div>
   </div>
 </template>
 </template>
 
 
 <script>
 <script>
 
 
-import { getDetails, tradingBox, submit, warehousingComplete , revokeOutboundCompleted} from "@/api/tirePartsMall/salesManagement/outboundWorkOrder";
+import { getDetails, tradingBox, submit, warehousingComplete, revokeOutboundCompleted } from "@/api/tirePartsMall/salesManagement/outboundWorkOrder";
 import { dateFormat } from "@/util/date";
 import { dateFormat } from "@/util/date";
 import reportDialog from "@/components/report-dialog/main";
 import reportDialog from "@/components/report-dialog/main";
 
 
@@ -84,8 +81,8 @@ export default {
       switchDialog: false,
       switchDialog: false,
       activeName: "sale_detail",
       activeName: "sale_detail",
       disabled: false,
       disabled: false,
-      isDisabled:false,
-      isAddDisabled:false,
+      isDisabled: false,
+      isAddDisabled: false,
       form: {
       form: {
         shipItemsList: [],
         shipItemsList: [],
         shipVOList: [],
         shipVOList: [],
@@ -93,14 +90,15 @@ export default {
       },
       },
       key: 0,
       key: 0,
       optionForm: {
       optionForm: {
-        disabled:false,
+        disabled: false,
         menuBtn: false,
         menuBtn: false,
         span: 8,
         span: 8,
         column: [{
         column: [{
           label: '业务对象',
           label: '业务对象',
-          disabled:true,
+          disabled: true,
           prop: "customerId",
           prop: "customerId",
           type: 'select',
           type: 'select',
+          disabled:true,
           props: {
           props: {
             label: 'cname',
             label: 'cname',
             value: 'id'
             value: 'id'
@@ -115,6 +113,7 @@ export default {
           label: '仓库',
           label: '仓库',
           prop: "storageId",
           prop: "storageId",
           type: 'select',
           type: 'select',
+          disabled:true,
           props: {
           props: {
             label: 'cname',
             label: 'cname',
             value: 'id'
             value: 'id'
@@ -129,6 +128,7 @@ export default {
           label: '库管',
           label: '库管',
           prop: "stockClerkId",
           prop: "stockClerkId",
           type: 'select',
           type: 'select',
+          disabled:true,
           props: {
           props: {
             label: 'realName',
             label: 'realName',
             value: 'id'
             value: 'id'
@@ -143,6 +143,7 @@ export default {
         {
         {
           label: '业务日期',
           label: '业务日期',
           prop: "createTime",
           prop: "createTime",
+          disabled:true,
           type: "datetime",
           type: "datetime",
           value: dateFormat(new Date(), 'yyyy-MM-dd hh:mm:ss'),
           value: dateFormat(new Date(), 'yyyy-MM-dd hh:mm:ss'),
           format: "yyyy-MM-dd HH:mm",
           format: "yyyy-MM-dd HH:mm",
@@ -157,6 +158,7 @@ export default {
         },
         },
         {
         {
           label: '入库单号',
           label: '入库单号',
+          disabled: true,
           disabled:true,
           disabled:true,
           prop: "ordNo",
           prop: "ordNo",
           rules: [
           rules: [
@@ -166,16 +168,19 @@ export default {
               trigger: "blur"
               trigger: "blur"
             }
             }
           ],
           ],
-        }, 
+        },
         {
         {
           label: '来源单号',
           label: '来源单号',
-          disabled:true,
-          prop: "srcOrdNo"
-        }, 
-         {
+          disabled: true,
+          prop: "srcOrdNo",
+          disabled:true
+        },
+        {
           label: '商品数量',
           label: '商品数量',
-          disabled:true,
+          disabled: true,
           prop: "goodsTotalNum",
           prop: "goodsTotalNum",
+          disabled:true,
+
           rules: [
           rules: [
             {
             {
               required: true,
               required: true,
@@ -188,6 +193,7 @@ export default {
           label: '备注',
           label: '备注',
           prop: "remarks",
           prop: "remarks",
           type: 'textarea',
           type: 'textarea',
+          disabled:true,
           span: 24,
           span: 24,
           minRows: 2
           minRows: 2
         }]
         }]
@@ -273,6 +279,7 @@ export default {
           disabled: true,
           disabled: true,
         }, {
         }, {
           label: '实际数量',
           label: '实际数量',
+          disabled: true,
           prop: 'sendNum'
           prop: 'sendNum'
         }, {
         }, {
           label: '备注',
           label: '备注',
@@ -379,7 +386,7 @@ export default {
   },
   },
   methods: {
   methods: {
     // 撤销出库
     // 撤销出库
-    revoke(){
+    revoke() {
       this.$refs["form"].validate((valid, done) => {
       this.$refs["form"].validate((valid, done) => {
         done();
         done();
         if (valid) {
         if (valid) {
@@ -437,7 +444,7 @@ export default {
             background: 'rgba(255,255,255,0.7)'
             background: 'rgba(255,255,255,0.7)'
           });
           });
           console.log(this.form)
           console.log(this.form)
-          this.form.shipItemsList.forEach(item=>{
+          this.form.shipItemsList.forEach(item => {
             item.goodsName = item.$goodsId
             item.goodsName = item.$goodsId
           })
           })
           // this.goodsName;
           // this.goodsName;
@@ -457,8 +464,8 @@ export default {
       });
       });
     },
     },
     refresh(id, type) {
     refresh(id, type) {
-      this.$set(this.optionContactsBack,'addBtn',false)
-      this.$set(this.optionContacts,'addBtn',false)
+      this.$set(this.optionContactsBack, 'addBtn', false)
+      this.$set(this.optionContacts, 'addBtn', false)
       this.isDisabled = true
       this.isDisabled = true
       const loading = this.$loading({
       const loading = this.$loading({
         lock: true,
         lock: true,
@@ -467,8 +474,8 @@ export default {
         background: 'rgba(255,255,255,0.7)'
         background: 'rgba(255,255,255,0.7)'
       })
       })
       getDetails({ id: id }).then(res => {
       getDetails({ id: id }).then(res => {
-        if(res.data.data.statusName == '已出库'){
-          this.$set(this.optionForm,'disabled',true)
+        if (res.data.data.statusName == '已出库') {
+          // this.$set(this.optionForm, 'disabled', true)
           this.isAddDisabled = true
           this.isAddDisabled = true
         }
         }
         this.form = res.data.data
         this.form = res.data.data
@@ -505,11 +512,21 @@ export default {
     //打印
     //打印
     handlePrint() {
     handlePrint() {
       this.switchDialog = !this.switchDialog;
       this.switchDialog = !this.switchDialog;
-        
+
     },
     },
     onClose(val) {
     onClose(val) {
       this.switchDialog = val;
       this.switchDialog = val;
     },
     },
+    //编辑
+    confirmEditing() {
+      this.optionForm.column.forEach(item => {
+        if (item.prop == 'remarks') {
+          item.disabled = false
+        }
+      })
+      this.isAddDisabled = false
+
+    },
     //自定义列保存
     //自定义列保存
     async saveColumnTwo(ref, option, optionBack, code) {
     async saveColumnTwo(ref, option, optionBack, code) {
       /**
       /**

+ 7 - 4
src/views/tirePartsMall/salesManagement/saleOrder/detailsPage.vue

@@ -14,7 +14,7 @@
                     @click="editCustomer">保 存
                     @click="editCustomer">保 存
                 </el-button>
                 </el-button>
                 <el-button class="el-button--small-yh" style="margin-left: 6px;"
                 <el-button class="el-button--small-yh" style="margin-left: 6px;"
-                    :class="{ 'el-button--success-yh': buttonColor === 'warning', 'el-button--warning-yh': buttonColor === 'warning' }"
+                    :type="buttonColor"
                     size="small" v-if="form.generateTask !== '已生成'" :disabled="isDisabledTask" @click="generateOutbound">
                     size="small" v-if="form.generateTask !== '已生成'" :disabled="isDisabledTask" @click="generateOutbound">
                     {{ buttonText }}
                     {{ buttonText }}
                 </el-button>
                 </el-button>
@@ -189,8 +189,6 @@ export default {
                                 this.form.phone = res.data.data.corpsAttnList[0].tel
                                 this.form.phone = res.data.data.corpsAttnList[0].tel
                                 this.contactsOption = res.data.data.corpsAddrList
                                 this.contactsOption = res.data.data.corpsAddrList
                                 this.form.recAddress = res.data.data.corpsAddrList[0].id
                                 this.form.recAddress = res.data.data.corpsAddrList[0].id
-                                this.form.businessSource = '内部销售'
-
                             })
                             })
                         }
                         }
 
 
@@ -687,6 +685,10 @@ export default {
             this['optionContacts'] = this['optionContactsBack'];
             this['optionContacts'] = this['optionContactsBack'];
             this.delColumnData(this.getColumnName('269.1'), this['optionContactsBack']);
             this.delColumnData(this.getColumnName('269.1'), this['optionContactsBack']);
         }
         }
+        if(!this.detailData.id){
+        this.form.businessSource = '内部销售'
+
+        }
     },
     },
     methods: {
     methods: {
         editBtn(row, index) {
         editBtn(row, index) {
@@ -850,6 +852,7 @@ export default {
                 console.log('res', res);
                 console.log('res', res);
                 this.form = res.data.data
                 this.form = res.data.data
                 let ordForm = { srcBillNo: this.form.ordNo }
                 let ordForm = { srcBillNo: this.form.ordNo }
+                let _this = this
                 getList(1, 50, ordForm).then((res) => {
                 getList(1, 50, ordForm).then((res) => {
                     this.dataList = res.data.data.records ? res.data.data.records : [];
                     this.dataList = res.data.data.records ? res.data.data.records : [];
                 })
                 })
@@ -858,7 +861,7 @@ export default {
                     this.isApplySettlement = false;
                     this.isApplySettlement = false;
                 }
                 }
 
 
-                if (this.form.status == '退款中') {
+                if (this.form.status == '退款中' || this.form.status == '已取消') {
                     console.log(2);
                     console.log(2);
                     this.isConfirmRefundBtn = false;
                     this.isConfirmRefundBtn = false;
                 }
                 }