chencc 1 an în urmă
părinte
comite
df3dafb89b

+ 2 - 2
src/views/saleOrder/salesToProductionNewTwo.vue

@@ -333,9 +333,9 @@
                         </template>
                     </el-table-column>
 
-                    <el-table-column label="生产交期" align="center" prop="produceDeliveryDeadline" width="160">
+                    <el-table-column label="生产交期" align="center"  width="160">
                         <template slot-scope="scope">
-                            <el-form-item label-width="0px" :prop="'salesOrders.' + scope.$index + '.produceDeliveryDeadline'"
+                            <el-form-item label-width="0px" 
                                 :rules="{
                                     required: true,
                                     message: '请选择生产交期',

+ 21 - 2
src/views/workOrder/index.vue

@@ -122,7 +122,7 @@
       </el-form>
 
       <div class="footer" slot="footer">
-        <el-button @click="visible = false">取消</el-button>
+        <el-button @click="close">取消</el-button>
         <el-button type="primary" v-click-once @click="confirm">确定</el-button>
       </div>
     </el-dialog>
@@ -163,8 +163,12 @@ export default {
 
       form: {
         assignType: 1,
+        crewIds:'',
+        workstationIds:'',
+        teamId:'',
         singleReport: this.clientEnvironmentId == 2 ? 0 : 1
       },
+
       rules: {
         singleReport: [
           {
@@ -437,7 +441,6 @@ export default {
     toRelease(row) {
       this.current = row;
       this.visible = true;
-
       this.FirstTaskIdFn();
       this.WorkCenterIdFn();
     },
@@ -451,6 +454,8 @@ export default {
         .then((res) => {
           if (res) {
             this.$message.success('成功');
+            
+            this.reData();
             this.reload();
             this.visible = false;
           }
@@ -459,6 +464,20 @@ export default {
           loading.close();
         });
     },
+    close(){
+      this.visible = false;
+      this.reData();
+    },
+    reData(){
+      this.form= {
+              assignType: 1,
+              crewIds:'',
+              workstationIds:'',
+              teamId:'',
+              singleReport: this.clientEnvironmentId == 2 ? 0 : 1
+            };
+    },
+
     /* 刷新表格 */
     reload(where) {
       this.$nextTick(() => {

+ 2 - 2
vue.config.js

@@ -35,8 +35,8 @@ module.exports = {
         // target: 'http://192.168.1.103:18086',
         // target: 'http://192.168.1.158:18086',
         // target: 'http://192.168.158:18086',
-        target: 'http://192.168.1.251:18086',
-        // target: 'http://192.168.1.125:18086',
+        // target: 'http://192.168.1.251:18086',
+        target: 'http://192.168.1.125:18086',
 
         changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域
         pathRewrite: {