From 6a496cd9a081b0f1ba869255e13316b66895dac5 Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期三, 15 十一月 2023 19:21:47 +0800
Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/mes-ocea-before

---
 src/views/plan/masterproductionschedule/index.vue                   |   24 ++++++++++++------------
 vue.config.js                                                       |    2 +-
 src/views/plan/customerorder/index.vue                              |   10 +++++-----
 src/views/plan/masterproductionschedule/auto-manufacturingorder.vue |    7 ++++---
 src/styles/variables.scss                                           |    2 +-
 src/views/plan/customerorder/sample-customerorder-form.vue          |   11 +++++++----
 6 files changed, 30 insertions(+), 26 deletions(-)

diff --git a/src/styles/variables.scss b/src/styles/variables.scss
index 8dfd822..96197cc 100644
--- a/src/styles/variables.scss
+++ b/src/styles/variables.scss
@@ -2,7 +2,7 @@
 $mainBg: #409eff;
 
 /* 鏀瑰彉涓婚鑹插彉閲� */
-$--color-primary: #006eff;
+$--color-primary: #875a7b;
 
 /* 鏀瑰彉 icon 瀛椾綋璺緞鍙橀噺锛屽繀闇� */
 $--font-path: '~element-ui/lib/theme-chalk/fonts';
diff --git a/src/views/plan/customerorder/index.vue b/src/views/plan/customerorder/index.vue
index d73a898..8ac6bbd 100644
--- a/src/views/plan/customerorder/index.vue
+++ b/src/views/plan/customerorder/index.vue
@@ -84,13 +84,13 @@
             @click="()=>exportDialogVisible=true"
             >瀵煎嚭鍙拌处</el-button
           >
-          <el-button
+          <!-- <el-button
             v-if="permissions.plan_customerorder_return"
             style="margin-left:10px;"
             type="primary"
             @click="returnOrder"
             >璁㈠崟閫�鍥�</el-button
-          >
+          > -->
         </template>
       </ttable>
 
@@ -449,7 +449,7 @@
           {
             minWidth: '100',
             width: '100px',
-            prop: 'contractNo',
+            prop: 'customerOrderNo',
             label: '鍚堝悓缂栧彿',
             sort: true,
             isTrue: true,
@@ -1188,13 +1188,13 @@
     },
     // 浣滃簾
     cancelHandle(row) {
-      this.$confirm('纭浣滃簾閿�鍞鍗曞彿涓恒��' + row.contractNo + '銆戠殑鏁版嵁?','鎻愮ず' , {
+      this.$confirm('纭浣滃簾id涓恒��' + row.id + '銆戠殑鏁版嵁?','鎻愮ず' , {
         confirmButtonText: '纭畾',
         cancelButtonText: '鍙栨秷',
         closeOnClickModal: false,
         type: 'warning'
       }).then(() => {
-        dropByContractNo({contractNo:row.contractNo}).then((res) => {
+        dropByContractNo({id:row.id}).then((res) => {
           if (res.data.code === 0) {
             this.$message.success('浣滃簾鎴愬姛')
             this.getData()
diff --git a/src/views/plan/customerorder/sample-customerorder-form.vue b/src/views/plan/customerorder/sample-customerorder-form.vue
index 9c069b0..b1d326d 100644
--- a/src/views/plan/customerorder/sample-customerorder-form.vue
+++ b/src/views/plan/customerorder/sample-customerorder-form.vue
@@ -68,8 +68,8 @@
         <el-row>
           <el-col :span="6">
             <el-form-item label="涓氬姟鍛�" prop="salesMan">
-              <el-select @change="selsctionSales" v-model="salesSelectData" style="width:100%">
-                <el-option v-for="(item,index) in staffOptions" :key="index" :value="item" :label="item.staffName"/>
+              <el-select @change="selsctionSales" filterable v-model="salesSelectData" style="width:100%">
+                <el-option v-for="(item,index) in staffOptions" :key="index" :value="item.staffNo+','+item.staffName" :label="item.staffName"/>
               </el-select>
             </el-form-item>
           </el-col>
@@ -489,8 +489,11 @@
   },
   methods: {
     selsctionSales(data){
-        this.dataForm.salesMan =  data.staffName
-        this.dataForm.salerWorkCode = data.staffNo
+      if(data){
+        let arr = data.split(",")
+        this.dataForm.salesMan =  arr[1]
+        this.dataForm.salerWorkCode = arr[0]
+      }
     },
     getStaffOptions(){
       chooseStaff().then((response)=>{
diff --git a/src/views/plan/masterproductionschedule/auto-manufacturingorder.vue b/src/views/plan/masterproductionschedule/auto-manufacturingorder.vue
index fab06e0..4f87083 100644
--- a/src/views/plan/masterproductionschedule/auto-manufacturingorder.vue
+++ b/src/views/plan/masterproductionschedule/auto-manufacturingorder.vue
@@ -155,7 +155,7 @@
                 </el-select>
               </template>
             </el-table-column>
-            <el-table-column
+            <!-- <el-table-column
               prop="isReportOperation"
               label="IFS杞﹂棿璁㈠崟鎺ユ敹鏃舵姤鍛婂伐搴�"
               align="center"
@@ -163,7 +163,7 @@
               <template slot-scope="scope">
                 <span>{{ scope.row.isReportOperation ? '鏄�' : '鍚�' }}</span>
               </template>
-            </el-table-column>
+            </el-table-column> -->
           </el-table>
         </div>
       </div>
@@ -251,7 +251,7 @@
                     unit: item.unit,
                     workShop: null,
                     workshopTypeCode: 'M',
-                    requiredDate: null,
+                    requiredDate: this.masterProduction.requiredDate,
                     id: item.id,
                     manufactureAttr: this.masterProduction.manufactureAttr,
                     isReportOperation: this.isReportOperation
@@ -417,6 +417,7 @@
     },
     getWorkShopOptions() {
       remote('work_shop').then((response) => {
+        console.log("楂樺帇",response);
         if (response.data.code === 0) {
           this.workShopOptions = response.data.data
         } else {
diff --git a/src/views/plan/masterproductionschedule/index.vue b/src/views/plan/masterproductionschedule/index.vue
index 6229039..aeb9cf5 100644
--- a/src/views/plan/masterproductionschedule/index.vue
+++ b/src/views/plan/masterproductionschedule/index.vue
@@ -82,14 +82,14 @@
               >
             </el-dropdown-menu>
           </el-dropdown>
-          <el-button
+          <!-- <el-button
             v-if="permissions.masterproductionschedule_submit_oa"
             @click="commitOa()"
             type="primary"
             style="margin-left:10px;"
             :loading="loadingOa"
             >鎻愪氦OA
-          </el-button>
+          </el-button> -->
           <!-- <el-button
             v-if="permissions.masterproductionschedule_sync_scm"
             @click="syncScm()"
@@ -690,18 +690,18 @@
       })
     }
     if (this.permissions.masterproductionschedule_create_outsourcing) {
-      this.table.toolbar.push({
-        text: '鍒涘缓濮斿璁㈠崟',
-        fun: this.createOutsourcingOrder
-      })
+      // this.table.toolbar.push({
+      //   text: '鍒涘缓濮斿璁㈠崟',
+      //   fun: this.createOutsourcingOrder
+      // })
     }
     if (this.permissions.masterproductionschedule_create_order_manual) {
-      this.orderTypeArr.push({
-        label: '鎵嬪姩鏂板',
-        command: 'MANUAL',
-        disabled: false,
-        permitArr: ['02processed']
-      })
+      // this.orderTypeArr.push({
+      //   label: '鎵嬪姩鏂板',
+      //   command: 'MANUAL',
+      //   disabled: false,
+      //   permitArr: ['02processed']
+      // })
     }
     if (this.permissions.masterproductionschedule_create_order_auto) {
       this.orderTypeArr.push({
diff --git a/vue.config.js b/vue.config.js
index 866bbb4..b633662 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -4,7 +4,7 @@
  */
 // const url = 'http://192.168.0.23:9999'
 
-  const url = 'http://192.168.0.23:9999'
+  const url = 'http://localhost:9999'
 
 // const url = 'http://ztt-gateway:9999'
 const localUrl = 'http://localhost:8089'

--
Gitblit v1.9.3