|
@@ -14,15 +14,6 @@
|
|
|
<template v-slot:toolbar>
|
|
<template v-slot:toolbar>
|
|
|
<div class="headbox">
|
|
<div class="headbox">
|
|
|
<div>
|
|
<div>
|
|
|
- <!-- <el-button-->
|
|
|
|
|
- <!-- size="small"-->
|
|
|
|
|
- <!-- type="primary"-->
|
|
|
|
|
- <!-- icon="el-icon-plus"-->
|
|
|
|
|
- <!-- class="ele-btn-icon"-->
|
|
|
|
|
- <!-- @click="handlAdd"-->
|
|
|
|
|
- <!-- >-->
|
|
|
|
|
- <!-- 新增-->
|
|
|
|
|
- <!-- </el-button>-->
|
|
|
|
|
<el-button
|
|
<el-button
|
|
|
size="small"
|
|
size="small"
|
|
|
type="primary"
|
|
type="primary"
|
|
@@ -353,7 +344,32 @@
|
|
|
column.label
|
|
column.label
|
|
|
}}</span>
|
|
}}</span>
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
|
|
+ <template v-slot:headerWarehouseId="{ column }">
|
|
|
|
|
+ <span :class="{ 'is-required': isNeedInquiry === 1 }">{{
|
|
|
|
|
+ column.label
|
|
|
|
|
+ }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-slot:warehouseId="scope">
|
|
|
|
|
+ <el-form-item
|
|
|
|
|
+ style="margin-bottom: 20px"
|
|
|
|
|
+ :prop="'datasource.' + scope.$index + '.warehouseId'"
|
|
|
|
|
+ :rules="[{ required: true, message: '请选择仓库', trigger: 'blur' }]"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="scope.row.warehouseId"
|
|
|
|
|
+ placeholder="请选择"
|
|
|
|
|
+ @change="warehouseChange(scope.$index, scope.row)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in warehouseList"
|
|
|
|
|
+ :key="item.id"
|
|
|
|
|
+ :label="item.name"
|
|
|
|
|
+ :value="item.id"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </template>
|
|
|
<!-- 操作列 -->
|
|
<!-- 操作列 -->
|
|
|
<template v-slot:action="scope">
|
|
<template v-slot:action="scope">
|
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
@@ -406,6 +422,7 @@
|
|
|
import taskinstanceDialog from '@/BIZComponents/procedure/taskinstanceDialog.vue';
|
|
import taskinstanceDialog from '@/BIZComponents/procedure/taskinstanceDialog.vue';
|
|
|
import { lbjtList } from '@/enum/dict.js';
|
|
import { lbjtList } from '@/enum/dict.js';
|
|
|
import tabMixins from '@/mixins/tableColumnsMixin';
|
|
import tabMixins from '@/mixins/tableColumnsMixin';
|
|
|
|
|
+ import { getWarehouseList } from '@/api/saleManage/saleorder';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
mixins: [dictMixins, tabMixins],
|
|
mixins: [dictMixins, tabMixins],
|
|
@@ -438,33 +455,9 @@
|
|
|
// })
|
|
// })
|
|
|
}
|
|
}
|
|
|
return this.needInquiry;
|
|
return this.needInquiry;
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- data() {
|
|
|
|
|
- const defaultForm = {
|
|
|
|
|
- key: null,
|
|
|
|
|
- endTime: '',
|
|
|
|
|
- isFirst: 0,
|
|
|
|
|
- name: '',
|
|
|
|
|
- supplierName: '',
|
|
|
|
|
- weightUnit: ''
|
|
|
|
|
- };
|
|
|
|
|
- return {
|
|
|
|
|
- cacheKeyUrl: 'eos-purchasingManage-purchasePlanManage-inventoryTable',
|
|
|
|
|
- curIndex: null,
|
|
|
|
|
- numberReg,
|
|
|
|
|
- defaultForm,
|
|
|
|
|
- arrivalWayList: [
|
|
|
|
|
- { label: '一次性到货', value: 1 },
|
|
|
|
|
- { label: '分批到货', value: 2 }
|
|
|
|
|
- ],
|
|
|
|
|
- form: {
|
|
|
|
|
- datasource: []
|
|
|
|
|
- },
|
|
|
|
|
- taskinstanceDialogFlag: false,
|
|
|
|
|
- rules: {},
|
|
|
|
|
- dictList: {},
|
|
|
|
|
- columns: [
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ columns() {
|
|
|
|
|
+ return [
|
|
|
{
|
|
{
|
|
|
width: 45,
|
|
width: 45,
|
|
|
type: 'index',
|
|
type: 'index',
|
|
@@ -529,6 +522,14 @@
|
|
|
headerSlot: 'headerTotalCount',
|
|
headerSlot: 'headerTotalCount',
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 200,
|
|
|
|
|
+ prop: 'warehouseId',
|
|
|
|
|
+ label: '入库仓库',
|
|
|
|
|
+ slot: 'warehouseId',
|
|
|
|
|
+ headerSlot: 'headerWarehouseId',
|
|
|
|
|
+ align: 'center'
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
width: 80,
|
|
width: 80,
|
|
|
prop: 'availableCountBase',
|
|
prop: 'availableCountBase',
|
|
@@ -641,13 +642,7 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- // {
|
|
|
|
|
- // width: 120,
|
|
|
|
|
- // prop: 'approvalNumber',
|
|
|
|
|
- // align: 'center',
|
|
|
|
|
- // label: '批准文号',
|
|
|
|
|
- // showOverflowTooltip: true
|
|
|
|
|
- // },
|
|
|
|
|
|
|
+
|
|
|
{
|
|
{
|
|
|
width: 120,
|
|
width: 120,
|
|
|
prop: 'packingSpecification',
|
|
prop: 'packingSpecification',
|
|
@@ -681,11 +676,41 @@
|
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
}
|
|
}
|
|
|
- ]
|
|
|
|
|
|
|
+ ];
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ data() {
|
|
|
|
|
+ const defaultForm = {
|
|
|
|
|
+ key: null,
|
|
|
|
|
+ endTime: '',
|
|
|
|
|
+ isFirst: 0,
|
|
|
|
|
+ name: '',
|
|
|
|
|
+ supplierName: '',
|
|
|
|
|
+ weightUnit: ''
|
|
|
|
|
+ };
|
|
|
|
|
+ return {
|
|
|
|
|
+ cacheKeyUrl: 'eos-purchasingManage-purchasePlanManage-inventoryTable',
|
|
|
|
|
+ curIndex: null,
|
|
|
|
|
+ numberReg,
|
|
|
|
|
+ defaultForm,
|
|
|
|
|
+ arrivalWayList: [
|
|
|
|
|
+ { label: '一次性到货', value: 1 },
|
|
|
|
|
+ { label: '分批到货', value: 2 }
|
|
|
|
|
+ ],
|
|
|
|
|
+ form: {
|
|
|
|
|
+ datasource: []
|
|
|
|
|
+ },
|
|
|
|
|
+ taskinstanceDialogFlag: false,
|
|
|
|
|
+ rules: {},
|
|
|
|
|
+ dictList: {},
|
|
|
|
|
+ warehouseList:[]
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
this.requestDict('生产类型');
|
|
this.requestDict('生产类型');
|
|
|
|
|
+ getWarehouseList().then((res) => {
|
|
|
|
|
+ this.warehouseList = res;
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
// 返回列表数据
|
|
// 返回列表数据
|
|
@@ -799,6 +824,15 @@
|
|
|
params.supplierName
|
|
params.supplierName
|
|
|
);
|
|
);
|
|
|
},
|
|
},
|
|
|
|
|
+ async warehouseChange(index, row) {
|
|
|
|
|
+ const data = this.warehouseList.find(
|
|
|
|
|
+ (item) => item.id == row.warehouseId
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
|
|
+ this.$set(this.form.datasource[index], 'warehouseName', data.name);
|
|
|
|
|
+ this.$set(this.form.datasource[index], 'warehouseCode', data.code);
|
|
|
|
|
+ this.$set(this.form.datasource[index], 'warehouseId', data.id);
|
|
|
|
|
+ },
|
|
|
//选择产品
|
|
//选择产品
|
|
|
handParent(row, index) {
|
|
handParent(row, index) {
|
|
|
// let item = {
|
|
// let item = {
|