|
|
@@ -40,6 +40,7 @@
|
|
|
labelKey="name"
|
|
|
placeholder="请选择"
|
|
|
default-expand-all
|
|
|
+ ref="treeSelect"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -660,7 +661,7 @@
|
|
|
提交
|
|
|
</el-link>
|
|
|
<el-link
|
|
|
- v-if="[0, 3].includes(scope.row.processStatus) && form.type == 2"
|
|
|
+ v-if="[0, 3].includes(scope.row.processStatus) && (form.type == 2||form.type == 3)"
|
|
|
type="primary"
|
|
|
:underline="false"
|
|
|
icon="el-icon-plus"
|
|
|
@@ -687,8 +688,8 @@
|
|
|
</template>
|
|
|
</ele-pro-table>
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="供货列表" :name="5" v-if="form.type == 2">
|
|
|
- <headerTitle title="供货列表" style="margin-top: 30px"></headerTitle>
|
|
|
+ <el-tab-pane :label="getLabel" :name="5" v-if="form.type != 1">
|
|
|
+ <headerTitle :title="getLabel" style="margin-top: 30px"></headerTitle>
|
|
|
<ele-pro-table
|
|
|
ref="supplyRef"
|
|
|
:columns="supplyColumns"
|
|
|
@@ -760,7 +761,7 @@
|
|
|
@click="pageChange('next')"
|
|
|
:disabled="
|
|
|
(form.type == 1 && activeName == 4) ||
|
|
|
- (form.type == 2 && activeName == 5)
|
|
|
+ (form.type != 1 && activeName == 5)
|
|
|
"
|
|
|
>下一步</el-button
|
|
|
>
|
|
|
@@ -768,7 +769,7 @@
|
|
|
type="primary"
|
|
|
v-if="
|
|
|
(form.type == 1 && activeName == 4) ||
|
|
|
- (form.type == 2 && activeName == 5) ||
|
|
|
+ (form.type != 1 && activeName == 5) ||
|
|
|
form?.id
|
|
|
"
|
|
|
@click="save"
|
|
|
@@ -845,7 +846,7 @@
|
|
|
import parentList from './parentList.vue';
|
|
|
// import certificateQualificationsDialog from '@/views/purchasingManage/supplierManage/components/certificateQualificationsDialog.vue';
|
|
|
import certificateQualificationsDialog from './certificateQualificationsDialog.vue';
|
|
|
- import { reviewStatus,lbjtList } from '@/enum/dict';
|
|
|
+ import { reviewStatus, lbjtList } from '@/enum/dict';
|
|
|
import { deepClone } from '@/utils';
|
|
|
import searchTable from '@/views/saleManage/saleOrder/components/searchTable.vue';
|
|
|
import { getTableList } from '@/api/saleManage/saleorder';
|
|
|
@@ -953,168 +954,7 @@
|
|
|
label: '是'
|
|
|
}
|
|
|
],
|
|
|
- supplyColumns: [
|
|
|
- {
|
|
|
- columnKey: 'index',
|
|
|
- type: 'index',
|
|
|
- width: 50,
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- label: '序号'
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'productCode',
|
|
|
- label: '编码',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- minWidth: 110
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'productName',
|
|
|
- label: '名称',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- minWidth: 110
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'purchasingCycle',
|
|
|
- label: '采购周期',
|
|
|
- align: 'center',
|
|
|
- slot: 'purchasingCycle',
|
|
|
- showOverflowTooltip: true,
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'purchaseMultiplier',
|
|
|
- label: '倍数',
|
|
|
- slot: 'purchaseMultiplier',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'minimumOrderQuantity',
|
|
|
- label: '最低订购数量',
|
|
|
- slot: 'minimumOrderQuantity',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'provenance',
|
|
|
- label: '产地',
|
|
|
- slot: 'provenance',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- minWidth: 200
|
|
|
- },
|
|
|
|
|
|
- {
|
|
|
- prop: 'imgCode',
|
|
|
- align: 'center',
|
|
|
- label: '图号/件号',
|
|
|
- showOverflowTooltip: true,
|
|
|
- minWidth: 110
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'produceType',
|
|
|
- align: 'center',
|
|
|
- label: '属性类型',
|
|
|
- showOverflowTooltip: true,
|
|
|
- minWidth: 110,
|
|
|
- formatter: (row, column) => {
|
|
|
- if(row.produceType){
|
|
|
- return row.produceType.map(item=>{
|
|
|
- return lbjtList[item]
|
|
|
- }).toString()
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- },
|
|
|
- // {
|
|
|
- // prop: 'approvalNumber',
|
|
|
- // align: 'center',
|
|
|
- // label: '批准文号',
|
|
|
- // showOverflowTooltip: true,
|
|
|
- // minWidth: 110
|
|
|
- // },
|
|
|
- {
|
|
|
- prop: 'packingSpecification',
|
|
|
- align: 'center',
|
|
|
- label: '包装规格',
|
|
|
- showOverflowTooltip: true,
|
|
|
- minWidth: 110
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'brandNum',
|
|
|
- align: 'center',
|
|
|
- label: '牌号',
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'modelType',
|
|
|
- label: '型号',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'specification',
|
|
|
- label: '规格',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'measuringUnit',
|
|
|
- label: '计量单位',
|
|
|
- showOverflowTooltip: true,
|
|
|
- align: 'center',
|
|
|
- minWidth: 90
|
|
|
- },
|
|
|
-
|
|
|
- // {
|
|
|
- // prop: 'weightUnit',
|
|
|
- // label: '重量单位',
|
|
|
- // showOverflowTooltip: true,
|
|
|
- // align: 'center',
|
|
|
- // minWidth: 90
|
|
|
- // },
|
|
|
- //
|
|
|
- // {
|
|
|
- // prop: 'roughWeight',
|
|
|
- // label: '毛重',
|
|
|
- // showOverflowTooltip: true,
|
|
|
- // align: 'center',
|
|
|
- // minWidth: 90
|
|
|
- // },
|
|
|
- //
|
|
|
- // {
|
|
|
- // prop: 'netWeight',
|
|
|
- // label: '净重',
|
|
|
- // showOverflowTooltip: true,
|
|
|
- // align: 'center',
|
|
|
- // minWidth: 90
|
|
|
- // },
|
|
|
- //
|
|
|
- // {
|
|
|
- // prop: 'packingUnit',
|
|
|
- // align: 'center',
|
|
|
- // label: '包装单位',
|
|
|
- // showOverflowTooltip: true
|
|
|
- // },
|
|
|
- // {
|
|
|
- // prop: 'categoryLevelPath',
|
|
|
- // label: '分类',
|
|
|
- // align: 'center',
|
|
|
- // showOverflowTooltip: true
|
|
|
- // },
|
|
|
- {
|
|
|
- slot: 'action',
|
|
|
- align: 'center',
|
|
|
- minWidth: 90,
|
|
|
- fixed: 'right',
|
|
|
- label: '操作'
|
|
|
- }
|
|
|
- ],
|
|
|
bankColumns: [
|
|
|
{
|
|
|
type: 'index',
|
|
|
@@ -1364,6 +1204,147 @@
|
|
|
align: 'center'
|
|
|
}
|
|
|
];
|
|
|
+ },
|
|
|
+ getLabel() {
|
|
|
+ return this.categoryIdList
|
|
|
+ .map((item) => {
|
|
|
+ let data = this.$refs.treeSelect.getNodeByValue(item);
|
|
|
+ return data.parentId == 0 ? data.id : data.parentId;
|
|
|
+ })
|
|
|
+ .includes('20250317001')
|
|
|
+ ? '生产列表'
|
|
|
+ : '供货列表';
|
|
|
+ },
|
|
|
+ supplyColumns() {
|
|
|
+ return [
|
|
|
+ {
|
|
|
+ columnKey: 'index',
|
|
|
+ type: 'index',
|
|
|
+ width: 50,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ label: '序号'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'productCode',
|
|
|
+ label: '编码',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ minWidth: 110
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'productName',
|
|
|
+ label: '名称',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ minWidth: 110
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'purchasingCycle',
|
|
|
+ label: '采购周期',
|
|
|
+ align: 'center',
|
|
|
+ slot: 'purchasingCycle',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ minWidth: 150
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'purchaseMultiplier',
|
|
|
+ label: '倍数',
|
|
|
+ slot: 'purchaseMultiplier',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ minWidth: 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'minimumOrderQuantity',
|
|
|
+ label: '最低订购数量',
|
|
|
+ slot: 'minimumOrderQuantity',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ minWidth: 150
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'provenance',
|
|
|
+ label: '产地',
|
|
|
+ slot: 'provenance',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ minWidth: 200
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'manufacturer',
|
|
|
+ label: '生产厂家',
|
|
|
+ slot: 'manufacturer',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ minWidth: 200,
|
|
|
+ show: this.getLabel == '供货列表'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'imgCode',
|
|
|
+ align: 'center',
|
|
|
+ label: '图号/件号',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ minWidth: 110
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'produceType',
|
|
|
+ align: 'center',
|
|
|
+ label: '属性类型',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ minWidth: 110,
|
|
|
+ formatter: (row, column) => {
|
|
|
+ if (row.produceType) {
|
|
|
+ return row.produceType
|
|
|
+ .map((item) => {
|
|
|
+ return lbjtList[item];
|
|
|
+ })
|
|
|
+ .toString();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ prop: 'packingSpecification',
|
|
|
+ align: 'center',
|
|
|
+ label: '包装规格',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ minWidth: 110
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'brandNum',
|
|
|
+ align: 'center',
|
|
|
+ label: '牌号',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'modelType',
|
|
|
+ label: '型号',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'specification',
|
|
|
+ label: '规格',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'measuringUnit',
|
|
|
+ label: '计量单位',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ align: 'center',
|
|
|
+ minWidth: 90
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ slot: 'action',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: 90,
|
|
|
+ fixed: 'right',
|
|
|
+ label: '操作'
|
|
|
+ }
|
|
|
+ ];
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -1389,7 +1370,9 @@
|
|
|
if (!row.id) {
|
|
|
this.isUpdate = false;
|
|
|
// 默认带出列表页面选中的分类
|
|
|
- this.form.categoryId = contactCategoryId;
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.categoryIdList = [contactCategoryId];
|
|
|
+ });
|
|
|
} else {
|
|
|
this.isUpdate = true;
|
|
|
await this._getById(row.id);
|
|
|
@@ -1690,6 +1673,8 @@
|
|
|
// this.form.removeBankList = this.removeBankList;
|
|
|
// this.form.removeLinkList = this.removeLinkList;
|
|
|
}
|
|
|
+ this.form.type =
|
|
|
+ this.form.type != 1 ? (this.getLabel == '供货列表' ? '2' : '3') : 1;
|
|
|
const data = {
|
|
|
base: this.form,
|
|
|
other: this.otherForm,
|
|
|
@@ -1778,9 +1763,12 @@
|
|
|
// data.base.businessLicenseFile
|
|
|
// ]);
|
|
|
// }
|
|
|
- this.categoryIdList = this.form.categoryId
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.categoryIdList = this.form.categoryId
|
|
|
? deepClone(this.form.categoryId.split(','))
|
|
|
: [];
|
|
|
+ })
|
|
|
+
|
|
|
if (this.tableLinkData && this.tableLinkData.length > 0) {
|
|
|
this.tableLinkData.forEach((e) => (e.status = e.status + ''));
|
|
|
}
|