|
@@ -14,28 +14,35 @@
|
|
|
>
|
|
>
|
|
|
<!-- 表头工具栏 -->
|
|
<!-- 表头工具栏 -->
|
|
|
<template v-slot:toolbar>
|
|
<template v-slot:toolbar>
|
|
|
- <el-button
|
|
|
|
|
- size="small"
|
|
|
|
|
- type="primary"
|
|
|
|
|
- icon="el-icon-plus"
|
|
|
|
|
- class="ele-btn-icon"
|
|
|
|
|
- @click="handParent('', -1)"
|
|
|
|
|
- >
|
|
|
|
|
- 新增
|
|
|
|
|
- </el-button>
|
|
|
|
|
- <warehouseAll
|
|
|
|
|
- @success="warehouseAllChange"
|
|
|
|
|
- :disabled="!selection.length"
|
|
|
|
|
- ></warehouseAll>
|
|
|
|
|
- <el-button
|
|
|
|
|
- size="small"
|
|
|
|
|
- type="primary"
|
|
|
|
|
- class="ele-btn-icon"
|
|
|
|
|
- style="margin-left: 5px"
|
|
|
|
|
- @click="handleTaskinstance"
|
|
|
|
|
- :disabled="!selection.length"
|
|
|
|
|
- >批量设置工序
|
|
|
|
|
- </el-button>
|
|
|
|
|
|
|
+ <div style="display: flex">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ icon="el-icon-plus"
|
|
|
|
|
+ class="ele-btn-icon"
|
|
|
|
|
+ @click="handParent('', -1)"
|
|
|
|
|
+ >
|
|
|
|
|
+ 新增
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <warehouseAll
|
|
|
|
|
+ @success="warehouseAllChange"
|
|
|
|
|
+ :disabled="!selection.length"
|
|
|
|
|
+ ></warehouseAll>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ class="ele-btn-icon"
|
|
|
|
|
+ style="margin-left: 5px"
|
|
|
|
|
+ @click="handleTaskinstance"
|
|
|
|
|
+ :disabled="!selection.length"
|
|
|
|
|
+ >批量设置工序
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+
|
|
|
|
|
+ <timeDialogAll
|
|
|
|
|
+ @chooseTime="chooseTimeALl"
|
|
|
|
|
+ :disabled="!selection.length"
|
|
|
|
|
+ ></timeDialogAll>
|
|
|
|
|
+ </div>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:productName="{ row, $index }">
|
|
<template v-slot:productName="{ row, $index }">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
@@ -504,6 +511,7 @@
|
|
|
import { levelList } from '@/enum/dict.js';
|
|
import { levelList } from '@/enum/dict.js';
|
|
|
import { changeCount } from '@/BIZComponents/setProduct.js';
|
|
import { changeCount } from '@/BIZComponents/setProduct.js';
|
|
|
import { contactQueryByCategoryIdsAPI } from '@/api/saleManage/contact';
|
|
import { contactQueryByCategoryIdsAPI } from '@/api/saleManage/contact';
|
|
|
|
|
+ import timeDialogAll from '@/components/timeDialog/indexAll.vue';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
mixins: [dictMixins, tabMixins],
|
|
mixins: [dictMixins, tabMixins],
|
|
@@ -528,6 +536,7 @@
|
|
|
fileUpload,
|
|
fileUpload,
|
|
|
headList,
|
|
headList,
|
|
|
timeDialog,
|
|
timeDialog,
|
|
|
|
|
+ timeDialogAll,
|
|
|
warehouseAll
|
|
warehouseAll
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -952,6 +961,37 @@
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ chooseTimeALl(data) {
|
|
|
|
|
+ let keyS = this.selection.map((item) => item.key - 1);
|
|
|
|
|
+ keyS.forEach((key) => {
|
|
|
|
|
+ this.$set(
|
|
|
|
|
+ this.form.datasource[key],
|
|
|
|
|
+ 'arrivalWay',
|
|
|
|
|
+ data.deliveryMethod
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
|
|
+ if (data.deliveryMethod == 1) {
|
|
|
|
|
+ this.$set(
|
|
|
|
|
+ this.form.datasource[key],
|
|
|
|
|
+ 'expectReceiveDate',
|
|
|
|
|
+ data.requireDeliveryTime
|
|
|
|
|
+ );
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$set(
|
|
|
|
|
+ this.form.datasource[key],
|
|
|
|
|
+ 'arrivalBatch',
|
|
|
|
|
+ copyObj(data.arrivalBatch)
|
|
|
|
|
+ );
|
|
|
|
|
+ this.$set(
|
|
|
|
|
+ this.form.datasource[key],
|
|
|
|
|
+ 'totalCount',
|
|
|
|
|
+ data.arrivalBatch
|
|
|
|
|
+ .map((item) => item.arriveCount)
|
|
|
|
|
+ .reduce((a, b) => a + b, 0)
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
// //获取供应商信息
|
|
// //获取供应商信息
|
|
|
// handleGetSup(e, row, index) {
|
|
// handleGetSup(e, row, index) {
|
|
|
// this.curIndex = index;
|
|
// this.curIndex = index;
|