Commit d7bd784d by zhangxw

Merge branch 'SAAS+V5.7.9' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into SAAS+V5.7.9
2 parents 20453ec8 e181efd7
<template> <template>
<d2-dialog :append-to-body="appendToBody" <d2-dialog :append-to-body="appendToBody" btn-ok-label="确定" class="selectGoods" :is-visible.sync="selectGoodsVisible"
btn-ok-label="确定" :title="title" width="70%" @closeDialog="handleSelectGoodsClose" @confirmDialog="handleSelectGoodsConfirm">
class="selectGoods" <d2-search ref="showSearch" class="show-search" :form-data="showFormData" label-width="100px"
:is-visible.sync="selectGoodsVisible"
:title="title"
width="70%"
@closeDialog="handleSelectGoodsClose"
@confirmDialog="handleSelectGoodsConfirm">
<d2-search ref="showSearch"
class="show-search"
:form-data="showFormData"
label-width="100px"
:search-form="searchForm"> :search-form="searchForm">
<template #commodityCode> <template #commodityCode>
<el-input v-model.trim="searchForm.commodityCode" <el-input v-model.trim="searchForm.commodityCode" :clearable="true" :maxlength="50" placeholder="请输入产品ID"
:clearable="true" :style="{ width: '100%' }" @input="event => searchInput(event, 'commodityCode')" />
:maxlength="50"
placeholder="请输入产品ID"
:style="{ width: '100%' }"
@input="event => searchInput(event, 'commodityCode')" />
</template> </template>
<template #type> <template #type>
<!-- <el-input v-model.trim="searchForm.type" <!-- <el-input v-model.trim="searchForm.type"
...@@ -27,63 +14,42 @@ ...@@ -27,63 +14,42 @@
placeholder="请输入产品编码" placeholder="请输入产品编码"
:style="{ width: '100%' }" :style="{ width: '100%' }"
@input="event => searchInput(event, 'type')" /> --> @input="event => searchInput(event, 'type')" /> -->
<el-input v-model.trim="searchForm.type" <el-input v-model.trim="searchForm.type" :style="{ width: '100%' }" placeholder="请输入产品编码" :clearable="true"
:style="{ width: '100%' }"
placeholder="请输入产品编码"
:clearable="true"
:maxlength="50" /> :maxlength="50" />
</template> </template>
<template #thirdPartyCode> <template #thirdPartyCode>
<el-input v-model.trim="searchForm.thirdPartyCode" <el-input v-model.trim="searchForm.thirdPartyCode" :clearable="true" :maxlength="50" placeholder="请输入供应商编码"
:clearable="true" :style="{ width: '100%' }" @input="event => searchInput(event, 'thirdPartyCode')" />
:maxlength="50"
placeholder="请输入供应商编码"
:style="{ width: '100%' }"
@input="event => searchInput(event, 'thirdPartyCode')" />
</template> </template>
<template #baseGoodsCommodityCode> <template #baseGoodsCommodityCode>
<el-input v-model.trim="searchForm.baseGoodsCommodityCode" <el-input v-model.trim="searchForm.baseGoodsCommodityCode" :clearable="true" :maxlength="50"
:clearable="true" placeholder="请输入系列ID" :style="{ width: '100%' }"
:maxlength="50"
placeholder="请输入系列ID"
:style="{ width: '100%' }"
@input="event => searchInput(event, 'baseGoodsCommodityCode')" /> @input="event => searchInput(event, 'baseGoodsCommodityCode')" />
</template> </template>
<template #goodsCascader> <template #goodsCascader>
<el-cascader v-model="tempGoodsType" <el-cascader v-model="tempGoodsType" clearable filterable :options="baseData.productTypeList"
clearable placeholder="请选择" :props="{ checkStrictly: true, label: 'categoryName', value: 'categoryType' }"
filterable style="width: 100%;" @change="selectAddAttr($event)">
:options="baseData.productTypeList"
placeholder="请选择"
:props="{ checkStrictly: true, label: 'categoryName', value: 'categoryType' }"
style="width: 100%;"
@change="selectAddAttr($event)">
</el-cascader> </el-cascader>
</template> </template>
</d2-search> </d2-search>
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" <el-button :id="tableParams.btnId" size="small" type="primary">
size="small"
type="primary">
查询 查询
</el-button> </el-button>
</div> </div>
<d2-table ref="groundingIndexTable" <d2-table ref="groundingIndexTable" :before-search-fn="beforeSearchFn" :get-list-api="getListApi" :has-num="false"
:before-search-fn="beforeSearchFn" :search-form="searchForm" :table-params="tableParams" @setTableFinishFun="setTableFinishFun">
:get-list-api="getListApi"
:has-num="false"
:search-form="searchForm"
:table-params="tableParams"
@setTableFinishFun="setTableFinishFun">
<template #select_btn="scope"> <template #select_btn="scope">
<el-radio v-model="selectedRowId" <el-radio v-model="selectedRowId" :disabled="packageSelectIds && packageSelectIds.includes(scope.scope.id)"
:disabled="packageSelectIds && packageSelectIds.includes(scope.scope.id)"
:label="scope.scope.id"> :label="scope.scope.id">
{{ '' }} {{ '' }}
</el-radio> </el-radio>
</template> </template>
<template #areaName="scope"> <template #areaName="scope">
<el-tooltip v-if="Array.isArray(scope.scope.upgradeGoodsAreaList) && scope.scope.upgradeGoodsAreaList.length" placement="top"> <el-tooltip
v-if="Array.isArray(scope.scope.upgradeGoodsAreaList) && scope.scope.upgradeGoodsAreaList.length"
placement="top">
<div slot="content" class="car-type-list"> <div slot="content" class="car-type-list">
<div v-for="(item, index) in scope.scope.upgradeGoodsAreaList" :key="index">{{ <div v-for="(item, index) in scope.scope.upgradeGoodsAreaList" :key="index">{{
item.provinceName == '全国' ? '全国' : `${item.provinceName}-${item.cityName}` }}</div> item.provinceName == '全国' ? '全国' : `${item.provinceName}-${item.cityName}` }}</div>
...@@ -162,6 +128,10 @@ export default { ...@@ -162,6 +128,10 @@ export default {
merchantIdList: { merchantIdList: {
type: Array, type: Array,
default: () => [] default: () => []
},
isShelves: {
type: Boolean,
default: false,
} }
}, },
data() { data() {
...@@ -222,9 +192,11 @@ export default { ...@@ -222,9 +192,11 @@ export default {
specificationData: "", specificationData: "",
type: "", type: "",
thirdPartyCode: "", thirdPartyCode: "",
thirdPartyName: "",
carTypeSearch: "", carTypeSearch: "",
goodsName: "", goodsName: "",
baseGoodsCommodityCode: "", baseGoodsCommodityCode: "",
}, },
tempGoodsType: [], tempGoodsType: [],
baseData: { baseData: {
...@@ -250,6 +222,13 @@ export default { ...@@ -250,6 +222,13 @@ export default {
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.upgradeGoodsName || "-"; return cellValue.upgradeGoodsName || "-";
}, },
},
{
label: "产品编码",
prop: "type",
formatter: (cellValue) => {
return cellValue.type || "-";
},
}, { }, {
label: "产品ID", label: "产品ID",
prop: "commodityCode", prop: "commodityCode",
...@@ -264,19 +243,6 @@ export default { ...@@ -264,19 +243,6 @@ export default {
return this.filterSpecsStr(cellValue); return this.filterSpecsStr(cellValue);
}, },
}, { }, {
label: "产品编码",
prop: "type",
formatter: (cellValue) => {
return cellValue.type || "-";
},
}, {
label: "供应商编码",
prop: "thirdPartyCode",
width: 100,
formatter: (cellValue) => {
return cellValue?.thirdPartyCode || "-";
},
}, {
label: "运营成本/元", label: "运营成本/元",
prop: "operationCost", prop: "operationCost",
width: 150 width: 150
...@@ -322,12 +288,51 @@ export default { ...@@ -322,12 +288,51 @@ export default {
}, },
mounted() { mounted() {
this.selectedRowId = this.upgradeGoodsId; this.selectedRowId = this.upgradeGoodsId;
this.updateTableData()
// 获取全部类目 屏蔽服务商自建类目 // 获取全部类目 屏蔽服务商自建类目
getAllCategory({ categoryTypeList: this.selfBuildGoodsType, pageSize: 9999, currentPage: 1 }).then((res) => { getAllCategory({ categoryTypeList: this.selfBuildGoodsType, pageSize: 9999, currentPage: 1 }).then((res) => {
this.baseData.productTypeList = res?.list || []; this.baseData.productTypeList = res?.list || [];
}); });
}, },
methods: { methods: {
updateTableData(data) {
if (this.isShelves) {
this.showFormData.push({
label: "供应商名称",
name: "thirdPartyName",
type: "input",
maxlength: 50,
isClear: true,
keyFn: this.keyDowmGetList,
});
const typeIndex = this.tableParams.tableColumns.findIndex(item => item.prop === 'type');
if (typeIndex > -1) {
this.tableParams.tableColumns.splice(typeIndex + 1, 0, {
label: "供应商名称",
prop: "thirdPartyName",
width: 100,
formatter: (cellValue) => {
return cellValue?.thirdPartyName || "-";
},
});
}
const specIndex = this.tableParams.tableColumns.findIndex(item => item.prop === 'specificationData');
if (specIndex > -1) {
this.tableParams.tableColumns.splice(specIndex + 1, 0, {
label: "供应商编码",
prop: "thirdPartyCode",
width: 100,
formatter: (cellValue) => {
return cellValue?.thirdPartyCode || "-";
},
});
}
}
},
searchInput(e, key) { searchInput(e, key) {
if (!/^[a-z0-9]*$/i.test(e)) { if (!/^[a-z0-9]*$/i.test(e)) {
this.searchForm[key] = e.replace(/[^a-z0-9]/gi, ""); this.searchForm[key] = e.replace(/[^a-z0-9]/gi, "");
...@@ -384,7 +389,9 @@ export default { ...@@ -384,7 +389,9 @@ export default {
thirdPartyCode: "", thirdPartyCode: "",
carTypeSearch: "", carTypeSearch: "",
goodsName: "", goodsName: "",
thirdPartyName: '',
baseGoodsCommodityCode: "", baseGoodsCommodityCode: "",
}; };
this.tempGoodsType = []; this.tempGoodsType = [];
// 重新查询 // 重新查询
......
...@@ -30,8 +30,7 @@ ...@@ -30,8 +30,7 @@
v-if="(equitySceneType.includes(formData[item.key]) || extendedPosiType.includes(formData[item.key])) && !baseConfig.supplierCode.includes(`${formData.supplierCode}`)"> v-if="(equitySceneType.includes(formData[item.key]) || extendedPosiType.includes(formData[item.key])) && !baseConfig.supplierCode.includes(`${formData.supplierCode}`)">
<div class="label">嘀加成本元/件:</div> <div class="label">嘀加成本元/件:</div>
<div class="value"> <div class="value">
<ellipsis-popover <ellipsis-popover :content="priceFilter(formData.upgradeGoods['djCost']) || ''"></ellipsis-popover>
:content="priceFilter(formData.upgradeGoods['djCost']) || ''"></ellipsis-popover>
</div> </div>
</div> </div>
<!-- 商品分类 1太阳膜 --> <!-- 商品分类 1太阳膜 -->
...@@ -58,8 +57,7 @@ ...@@ -58,8 +57,7 @@
<div class="item" v-if="membraneTypeList.includes(formData[item.key])"> <div class="item" v-if="membraneTypeList.includes(formData[item.key])">
<div class="label">质保年限/年:</div> <div class="label">质保年限/年:</div>
<div class="value"> <div class="value">
<ellipsis-popover <ellipsis-popover :content="`${formData.upgradeGoods['warrantyPeriod']}年` || ''"></ellipsis-popover>
:content="`${formData.upgradeGoods['warrantyPeriod']}年` || ''"></ellipsis-popover>
</div> </div>
</div> </div>
</div> </div>
...@@ -104,10 +102,9 @@ ...@@ -104,10 +102,9 @@
<div v-else> <div v-else>
<el-form-item :prop="item.name" <el-form-item :prop="item.name"
:label="item.label ? (item.unit ? (membraneTypeList.includes(formData['goodsType']) ? item.label + `(元)/车` : (item.label + '(元)/件')) : item.label) + ':' : ''" :label="item.label ? (item.unit ? (membraneTypeList.includes(formData['goodsType']) ? item.label + `(元)/车` : (item.label + '(元)/件')) : item.label) + ':' : ''"
:id="item.name" :label-width="item.label ? '180px' : '0px'" class="dis-in-block" :id="item.name" :label-width="item.label ? '180px' : '0px'" class="dis-in-block" style="margin-bottom: 0">
style="margin-bottom: 0">
<div> <div>
<span>{{ item.unit ? priceFilter(formData[item.name]) : formData[item.name] }}</span> <span>{{ item.unit ? priceFilter(formData[item.name]) : formData[item.name] || '-' }}</span>
<span v-if="item.name == 'minSellPrice'">{{ formData['validMinSellPrice'] == 'Y' ? '(校验最低价)' : <span v-if="item.name == 'minSellPrice'">{{ formData['validMinSellPrice'] == 'Y' ? '(校验最低价)' :
'(不校验最低价)' }}</span> '(不校验最低价)' }}</span>
</div> </div>
......
...@@ -11,8 +11,7 @@ ...@@ -11,8 +11,7 @@
<div v-for="(item, index) in i.formBlock" :key="index"> <div v-for="(item, index) in i.formBlock" :key="index">
<!-- 单选 --> <!-- 单选 -->
<!-- 太阳膜类商品 上架部位 --> <!-- 太阳膜类商品 上架部位 -->
<div v-if=" <div v-if="item.type === 'radio' &&
item.type === 'radio' &&
formData['goodsType'] == 1 && formData['goodsType'] == 1 &&
!item.index !item.index
"> ">
...@@ -20,8 +19,8 @@ ...@@ -20,8 +19,8 @@
:label-width="item.label ? '180px' : '0px'" class="dis-in-block" :label-width="item.label ? '180px' : '0px'" class="dis-in-block"
:style="{ 'margin-bottom': !item.type ? '0px' : '22px' }"> :style="{ 'margin-bottom': !item.type ? '0px' : '22px' }">
<el-radio-group v-model="formData[item.name]"> <el-radio-group v-model="formData[item.name]">
<el-radio v-for="(subItem, subIndex) in item.radioGroupList" :key="subIndex" <el-radio v-for="(subItem, subIndex) in item.radioGroupList" :key="subIndex" :label="subItem.confId">{{
:label="subItem.confId">{{ subItem.confName }}</el-radio> subItem.confName }}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</div> </div>
...@@ -48,8 +47,7 @@ ...@@ -48,8 +47,7 @@
</div> </div>
</div> </div>
<!-- 权益/延保非第三方展示 --> <!-- 权益/延保非第三方展示 -->
<div class="item" v-if=" <div class="item" v-if="(equitySceneType.includes(formData[item.key]) ||
(equitySceneType.includes(formData[item.key]) ||
extendedPosiType.includes(formData[item.key])) && extendedPosiType.includes(formData[item.key])) &&
!baseConfig.supplierCode.includes( !baseConfig.supplierCode.includes(
`${formData.supplierCode}` `${formData.supplierCode}`
...@@ -69,8 +67,7 @@ ...@@ -69,8 +67,7 @@
</div> </div>
</div> </div>
<!-- 商品分类 权益类(供应方为非第三方) --> <!-- 商品分类 权益类(供应方为非第三方) -->
<div class="item" v-if=" <div class="item" v-if="equitySceneType.includes(formData[item.key]) &&
equitySceneType.includes(formData[item.key]) &&
!baseConfig.supplierCode.includes( !baseConfig.supplierCode.includes(
`${formData.supplierCode}` `${formData.supplierCode}`
) )
...@@ -102,8 +99,7 @@ ...@@ -102,8 +99,7 @@
</div> </div>
</div> </div>
<!-- 下拉框/输入框 --> <!-- 下拉框/输入框 -->
<div v-if=" <div v-if="item.type === 'input' ||
item.type === 'input' ||
item.type === 'select' || item.type === 'select' ||
item.type === 'searchSelect' item.type === 'searchSelect'
"> ">
...@@ -128,8 +124,8 @@ ...@@ -128,8 +124,8 @@
</template> </template>
<!-- 选择框 --> <!-- 选择框 -->
<el-select v-else-if="item.type === 'select'" v-model="formData[item.name]" :clearable="item.isClear" <el-select v-else-if="item.type === 'select'" v-model="formData[item.name]" :clearable="item.isClear"
:ref="'selectRefs_' + item.name" :placeholder="'请选择' + item.label" :ref="'selectRefs_' + item.name" :placeholder="'请选择' + item.label" @change="selectAddAttr($event, item)"
@change="selectAddAttr($event, item)" :style="{ width: item.width || formItemWidth }" filterable> :style="{ width: item.width || formItemWidth }" filterable>
<el-option v-for="subItem in item.optionList" :key="subItem[item.optionId]" <el-option v-for="subItem in item.optionList" :key="subItem[item.optionId]"
:label="subItem[item.optionLabel]" :value="subItem[item.optionId]" /> :label="subItem[item.optionLabel]" :value="subItem[item.optionId]" />
</el-select> </el-select>
...@@ -145,7 +141,7 @@ ...@@ -145,7 +141,7 @@
</el-option> </el-option>
</el-select> --> </el-select> -->
<el-button v-else-if="item.type === 'searchSelect'" icon="el-icon-plus" <el-button v-else-if="item.type === 'searchSelect'" icon="el-icon-plus"
@click="handleSelectGoods">选择商品</el-button> @click="handleSelectGoods">选择产品</el-button>
</el-form-item> </el-form-item>
</div> </div>
<!-- 财务规则校验 --> <!-- 财务规则校验 -->
...@@ -195,8 +191,7 @@ ...@@ -195,8 +191,7 @@
: :
</span> </span>
<el-checkbox-group v-model="formData[item.name]"> <el-checkbox-group v-model="formData[item.name]">
<el-checkbox v-for="(subItem, subIndex) in item.checkGroupList" :key="subIndex" <el-checkbox v-for="(subItem, subIndex) in item.checkGroupList" :key="subIndex" :label="subItem.confId">
:label="subItem.confId">
{{ subItem.confName }} {{ subItem.confName }}
</el-checkbox> </el-checkbox>
</el-checkbox-group> </el-checkbox-group>
...@@ -328,7 +323,7 @@ ...@@ -328,7 +323,7 @@
:initial-index="initialIndex" /> :initial-index="initialIndex" />
<select-goods-dialog v-if="selectGoodsVisible" :select-goods-visible="selectGoodsVisible" <select-goods-dialog v-if="selectGoodsVisible" :select-goods-visible="selectGoodsVisible"
@handleSelectGoodsConfirm="handleSelectGoodsConfirm" @handleSelectGoodsClose="handleSelectGoodsClose" @handleSelectGoodsConfirm="handleSelectGoodsConfirm" @handleSelectGoodsClose="handleSelectGoodsClose"
:upgrade-goods-id="formData.upgradeGoodsId"></select-goods-dialog> :upgrade-goods-id="formData.upgradeGoodsId" :is-shelves="true"></select-goods-dialog>
</div> </div>
</template> </template>
...@@ -387,6 +382,14 @@ export default { ...@@ -387,6 +382,14 @@ export default {
} }
} }
], ],
goodsAlias: [
{ required: true, message: "请输入产品别名", trigger: "blur" },
{
validator: (rule, value, callback) => {
value.length > 30 ? callback(new Error("产品别名不能超过30个字符")) : callback()
}
}
],
// minSellPrice: [ // minSellPrice: [
// { required: true, message: "请输入最低售价", trigger: "blur" }, // { required: true, message: "请输入最低售价", trigger: "blur" },
// { // {
......
...@@ -29,10 +29,10 @@ export default { ...@@ -29,10 +29,10 @@ export default {
addOrEdit: 'add', addOrEdit: 'add',
proFormRef: 'pro', proFormRef: 'pro',
editForm: [{ editForm: [{
title: '商品信息', title: '产品信息',
formBlock: [{ formBlock: [{
name: 'upgradeGoodsId', name: 'upgradeGoodsId',
label: '上架商品', label: '上架产品',
isRequired: true, isRequired: true,
type: 'searchSelect', type: 'searchSelect',
optionList: [], optionList: [],
...@@ -86,9 +86,21 @@ export default { ...@@ -86,9 +86,21 @@ export default {
}, { }, {
label: '产品ID', label: '产品ID',
value: 'upgradeCommodityCode' value: 'upgradeCommodityCode'
},
{
label: '供应商名称',
value: 'thirdPartyName'
}] }]
}, },
{ {
name: 'purchaseGoodsName',
label: '产品别名',
type: 'input',
width: '432px',
value: "purchaseGoodsName",
handleInput: true
},
{
name: 'purchasePrice', name: 'purchasePrice',
label: '采购价', label: '采购价',
type: 'input', type: 'input',
...@@ -159,7 +171,9 @@ export default { ...@@ -159,7 +171,9 @@ export default {
voucherList: [], voucherList: [],
// validMinSellPriceFlag: true, // validMinSellPriceFlag: true,
// validMinSellPrice: 'Y', // validMinSellPrice: 'Y',
suitCarType: 1 suitCarType: 1,
goodsAlias: '',
purchaseGoodsName: ''
}, },
secondGoodsList: [], secondGoodsList: [],
goodsNameKeyword: '', goodsNameKeyword: '',
...@@ -343,6 +357,7 @@ export default { ...@@ -343,6 +357,7 @@ export default {
confirmEvent(params, num) { confirmEvent(params, num) {
const obj = { // 商品信息 const obj = { // 商品信息
position: '', position: '',
purchaseGoodsName: '',
goodsAlias: '', goodsAlias: '',
warrantyType: '', warrantyType: '',
productType: [], productType: [],
......
...@@ -44,10 +44,10 @@ export default { ...@@ -44,10 +44,10 @@ export default {
financeCheckFlagStr: [{ required: true }] financeCheckFlagStr: [{ required: true }]
}, },
editForm: [{ editForm: [{
title: '商品信息', title: '产品信息',
formBlock: [{ formBlock: [{
name: 'goodsName', name: 'goodsName',
label: '上架商品', label: '上架产品',
type: 'incidBox', type: 'incidBox',
key: 'goodsType', key: 'goodsType',
detailInfo: [{ detailInfo: [{
...@@ -91,9 +91,19 @@ export default { ...@@ -91,9 +91,19 @@ export default {
}, { }, {
label: '产品ID', label: '产品ID',
value: 'upgradeCommodityCode' value: 'upgradeCommodityCode'
},
{
label: '供应商名称',
value: 'thirdPartyName'
}] }]
}, },
{ {
name: 'purchaseGoodsName',
label: '产品别名',
width: '432px',
handleInput: true
},
{
name: 'purchasePrice', name: 'purchasePrice',
label: '采购价', label: '采购价',
type: 'input', type: 'input',
......
...@@ -117,11 +117,8 @@ ...@@ -117,11 +117,8 @@
:selected-scene="batchCopySelectScene" @handleBatchCopyConfirm="handleBatchCopyConfirm" :selected-scene="batchCopySelectScene" @handleBatchCopyConfirm="handleBatchCopyConfirm"
@handleBatchCopyClose="handleBatchCopyClose"> @handleBatchCopyClose="handleBatchCopyClose">
</batch-copy-dialog> </batch-copy-dialog>
<d2-file-import-dialog :is-visible="fileVisible" <d2-file-import-dialog :is-visible="fileVisible" title="上传文件" @closeDialog="handleBatchImport"
title="上传文件" @confirmDialog="handleConfirmImport" @downloadTemplate="exportTemplate" />
@closeDialog="handleBatchImport"
@confirmDialog="handleConfirmImport"
@downloadTemplate="exportTemplate" />
</d2-container> </d2-container>
</template> </template>
<script> <script>
...@@ -158,7 +155,9 @@ export default { ...@@ -158,7 +155,9 @@ export default {
status: '', status: '',
yqMerchantId: '', yqMerchantId: '',
goodsSource: 0, goodsSource: 0,
financeCheckFlag: '' financeCheckFlag: '',
thirdPartyName: '',
thirdPartyCode: ''
}, },
tempGoodsType: [], tempGoodsType: [],
getListApi: getGroundingManageList, getListApi: getGroundingManageList,
...@@ -250,6 +249,12 @@ export default { ...@@ -250,6 +249,12 @@ export default {
isClear: true, isClear: true,
keyFn: this.keyDowmGetList keyFn: this.keyDowmGetList
}, { }, {
label: '供应商名称',
name: 'thirdPartyName',
type: 'input',
isClear: true,
keyFn: this.keyDowmGetList
}, {
label: '供应商编码', label: '供应商编码',
name: 'thirdPartyCode', name: 'thirdPartyCode',
type: 'input', type: 'input',
...@@ -326,13 +331,19 @@ export default { ...@@ -326,13 +331,19 @@ export default {
// return cellValue.upgradeGoods.type || '-' // return cellValue.upgradeGoods.type || '-'
// } // }
}, { }, {
label: '供应商名称',
prop: 'thirdPartyName',
width: 100,
formatter: (cellValue) => {
return cellValue?.thirdPartyName || '-'
}
}, {
label: '供应商编码', label: '供应商编码',
prop: 'thirdPartyCode', prop: 'thirdPartyCode',
parentProp: 'upgradeGoods',
width: 100, width: 100,
// formatter: (cellValue) => { formatter: (cellValue) => {
// return cellValue?.upgradeGoods?.thirdPartyCode || '-' return cellValue?.thirdPartyCode || '-'
// } }
}, { }, {
label: '上架商户', label: '上架商户',
name: '', name: '',
......
...@@ -307,7 +307,10 @@ export default { ...@@ -307,7 +307,10 @@ export default {
if (index === -1) { if (index === -1) {
return; return;
} }
this.$set(this.tabs.list, index, newRow); this.$set(this.tabs.list, index, {
...newRow,
productName: getProductPackagesName(newRow.productType, newRow),
});
} }
this.$refs.remoteSelectRef.forceUpdate(); this.$refs.remoteSelectRef.forceUpdate();
......
<template> <template>
<div> <div>
<baseDialog :is-show.sync="dialogShow" :config="dialogConfig.setting" :dialog-config="dialogConfig.config" @closeDialog="handleDetailClose(false)"> <baseDialog :is-show.sync="dialogShow" :config="dialogConfig.setting" :dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose(false)">
<div class="edit-order-dialog" v-if="dialogShow"> <div class="edit-order-dialog" v-if="dialogShow">
<div class="table-class"> <div class="table-class">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :has-page="hasPage" @refreshTable="refreshTable" :table-data="tableList" :table-total="detailInfo.tableTotal"> <d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :has-page="hasPage"
@refreshTable="refreshTable" :table-data="tableList" :table-total="detailInfo.tableTotal">
<div slot="nowPurNum" slot-scope="scope" style="margin: 0 8px;"> <div slot="nowPurNum" slot-scope="scope" style="margin: 0 8px;">
<el-select v-model="nowPurNumList[scope.index]" placeholder="请选择" clearable> <el-select v-model="nowPurNumList[scope.index]" placeholder="请选择" clearable>
<el-option v-for="item in staffList" :key="item.uuid" :label="item.staffName" :value="item.uuid"> <el-option v-for="item in staffList" :key="item.uuid" :label="item.staffName" :value="item.uuid">
...@@ -33,12 +35,17 @@ ...@@ -33,12 +35,17 @@
</div> </div>
<div class="footer"> <div class="footer">
<el-button @click="handleDetailClose(false)">取消</el-button> <el-button @click="handleDetailClose(false)">取消</el-button>
<el-button @click="submit" type="primary" v-preventReClick :loading="$store.state.d2admin.loading.value">确定</el-button> <el-button @click="submit" type="primary" v-preventReClick
:loading="$store.state.d2admin.loading.value">确定</el-button>
</div> </div>
</div> </div>
</baseDialog> </baseDialog>
<card-dialog v-if="cardVisible" :card-visible="cardVisible" :order-info="orderInfo" :selected-list="selectedCardList" @handleClose="handleCardDialog" @handleConfirm="handleCardConfirm"></card-dialog> <card-dialog v-if="cardVisible" :card-visible="cardVisible" :order-info="orderInfo" :selected-list="selectedCardList"
<glsk-form-dialog v-if="batchVisible" :selectVisible="batchVisible" :dialogConfig="batchDialogConfig" label-width="200px" :formRules="batchRules" :editData="batchForm" :editFormData="batchEditFormData" :baseData="{ staffList: staffList }" @handleClose="batchDialogVisible" @handleConfirm="handleBatchConfirm"></glsk-form-dialog> @handleClose="handleCardDialog" @handleConfirm="handleCardConfirm"></card-dialog>
<glsk-form-dialog v-if="batchVisible" :selectVisible="batchVisible" :dialogConfig="batchDialogConfig"
label-width="200px" :formRules="batchRules" :editData="batchForm" :editFormData="batchEditFormData"
:baseData="{ staffList: staffList }" @handleClose="batchDialogVisible"
@handleConfirm="handleBatchConfirm"></glsk-form-dialog>
</div> </div>
</template> </template>
...@@ -131,6 +138,11 @@ export default { ...@@ -131,6 +138,11 @@ export default {
prop: 'upgradeGoodsName' prop: 'upgradeGoodsName'
}, },
{ {
label: "供应商名称",
prop: 'thirdPartyName',
width: 100,
},
{
label: '产品编码', label: '产品编码',
prop: 'type' prop: 'type'
...@@ -140,11 +152,20 @@ export default { ...@@ -140,11 +152,20 @@ export default {
prop: 'specificationData' prop: 'specificationData'
}, },
{ {
label: '供应商编码',
prop: 'thirdPartyCode',
width: 100
},
{
label: '适用车型', label: '适用车型',
addHtml: 'carName', addHtml: 'carName',
width: 200 width: 200
}, },
{ {
label: "产品别名",
prop: "purchaseGoodsName",
},
{
label: '系列', label: '系列',
prop: 'goodsName' prop: 'goodsName'
}, },
...@@ -347,7 +368,7 @@ export default { ...@@ -347,7 +368,7 @@ export default {
font-size: 14px; font-size: 14px;
color: #666666; color: #666666;
> span { >span {
margin-right: 20px; margin-right: 20px;
margin-bottom: 10px; margin-bottom: 10px;
} }
......
<!-- 审核 --> <!-- 审核 -->
<template> <template>
<baseDialog :dialog-config="dialogConfig" <baseDialog :dialog-config="dialogConfig" :is-show.sync="visible" class="accountDailog" @handleClick="handleAddConfirm">
:is-show.sync="visible"
class="accountDailog"
@handleClick="handleAddConfirm">
<div class="reject-dialog"> <div class="reject-dialog">
<div class="edit-page edit-tmpl"> <div class="edit-page edit-tmpl">
<div class="title"> <div class="title">
产品信息 产品信息
</div> </div>
<div class="content-box"> <div class="content-box">
<d2-table ref="purchaseOrderDetailTable" <d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :table-data="detailInfo.tableData"
:table-params="tableParams" :layout="layout" :table-total="detailInfo.tableTotal" @refreshTable="refreshTable">
:table-data="detailInfo.tableData"
:layout="layout"
:table-total="detailInfo.tableTotal"
@refreshTable="refreshTable">
<template #upgradeGoodsName="scope"> <template #upgradeGoodsName="scope">
<div> <div>
<img v-if="scope.scope.refundStatus == 'Y'" <img v-if="scope.scope.refundStatus == 'Y'" class="return" src="@/assets/retrun.png"
class="return"
src="@/assets/retrun.png"
alt="" /> alt="" />
<span>{{ scope.scope.upgradeGoodsName }}</span> <span>{{ scope.scope.upgradeGoodsName }}</span>
</div> </div>
</template> </template>
<template #filmRollNo="scope"> <template #filmRollNo="scope">
<div v-if=" <div v-if="scope.scope.filmRollList
scope.scope.filmRollList
&& scope.scope.filmRollList.length == 1 && scope.scope.filmRollList.length == 1
"> ">
{{ scope.scope.filmRollList[0] }} {{ scope.scope.filmRollList[0] }}
</div> </div>
<div v-else-if=" <div v-else-if="scope.scope.filmRollList
scope.scope.filmRollList
&& scope.scope.filmRollList.length > 1 && scope.scope.filmRollList.length > 1
"> ">
<el-popover placement="top" <el-popover placement="top" width="200" trigger="hover">
width="200"
trigger="hover">
<div class="film-roll-box"> <div class="film-roll-box">
<div class="title"> <div class="title">
膜卷号 膜卷号
</div> </div>
<div v-for="(subItem, subIndex) in scope.scope.filmRollList" <div v-for="(subItem, subIndex) in scope.scope.filmRollList" :key="subIndex"
:key="subIndex"
class="merchant-item"> class="merchant-item">
{{ subItem }} {{ subItem }}
</div> </div>
...@@ -70,15 +56,12 @@ ...@@ -70,15 +56,12 @@
</div> </div>
</template> </template>
<template #carName="scope"> <template #carName="scope">
<el-tooltip v-if=" <el-tooltip v-if="scope.scope.suitCarTypeList
scope.scope.suitCarTypeList
&& scope.scope.suitCarTypeList.length && scope.scope.suitCarTypeList.length
" " placement="top">
placement="top">
<template #content> <template #content>
<div class="car-type-list"> <div class="car-type-list">
<div v-for="(item, index) in scope.scope.suitCarTypeList" <div v-for="(item, index) in scope.scope.suitCarTypeList" :key="index">
:key="index">
{{ {{
`${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}` `${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}`
}} }}
...@@ -92,29 +75,21 @@ ...@@ -92,29 +75,21 @@
</div> </div>
</template> </template>
<template #actionSlot="scope"> <template #actionSlot="scope">
<el-button type="text" <el-button type="text" @click="handleInventoryDetail(scope.scope)">
@click="handleInventoryDetail(scope.scope)">
库存明细 库存明细
</el-button> </el-button>
</template> </template>
</d2-table> </d2-table>
</div> </div>
</div> </div>
<glsx-combi-form ref="editFormRef" <glsx-combi-form ref="editFormRef" class="edit-form-container" label-width="150px" default-width="350px"
class="edit-form-container" :form-ref="editChildRef" :form-obj="infoForm" :form-data="editFormData" :form-rules="formRules">
label-width="150px"
default-width="350px"
:form-ref="editChildRef"
:form-obj="infoForm"
:form-data="editFormData"
:form-rules="formRules">
</glsx-combi-form> </glsx-combi-form>
<span :style="{ 'margin-left': '150px' }">{{ txtObj[fromPage] }}</span> <span :style="{ 'margin-left': '150px' }">{{ txtObj[fromPage] }}</span>
<ExamineRecord :list="originalAuditDetaiList" style="margin-top:20px;" /> <ExamineRecord :list="originalAuditDetaiList" style="margin-top:20px;" />
</div> </div>
<StockDetailDialog v-if="stockDetailDialogVisible" <StockDetailDialog v-if="stockDetailDialogVisible" :visible.sync="stockDetailDialogVisible"
:visible.sync="stockDetailDialogVisible"
:record-info="stockDetailInfo" /> :record-info="stockDetailInfo" />
</baseDialog> </baseDialog>
</template> </template>
...@@ -217,6 +192,11 @@ export default { ...@@ -217,6 +192,11 @@ export default {
prop: "upgradeGoodsName", prop: "upgradeGoodsName",
}, },
{ {
label: "供应商名称",
prop: 'thirdPartyName',
width: 100,
},
{
label: "产品编码", label: "产品编码",
prop: "type", prop: "type",
}, },
...@@ -224,6 +204,12 @@ export default { ...@@ -224,6 +204,12 @@ export default {
label: "规格", label: "规格",
prop: "specificationData", prop: "specificationData",
}, },
{
label: '供应商编码',
prop: 'thirdPartyCode',
width: 100
},
{ {
label: "采购数量", label: "采购数量",
prop: "goodsNumber", prop: "goodsNumber",
...@@ -245,8 +231,7 @@ export default { ...@@ -245,8 +231,7 @@ export default {
const condition = baseConfig.membraneTypeList.includes( const condition = baseConfig.membraneTypeList.includes(
cellValue.goodsType, cellValue.goodsType,
) )
? `${ ? `${cellValue.conversionValue
cellValue.conversionValue
? cellValue.goodsNumber * cellValue.conversionValue ? cellValue.goodsNumber * cellValue.conversionValue
: "-" : "-"
}米` }米`
...@@ -257,6 +242,10 @@ export default { ...@@ -257,6 +242,10 @@ export default {
}, },
}, },
{ {
label: "产品别名",
prop: "purchaseGoodsName",
},
{
label: "已发货数量", label: "已发货数量",
prop: "purchaseNumber", prop: "purchaseNumber",
width: 110, width: 110,
...@@ -470,6 +459,7 @@ export default { ...@@ -470,6 +459,7 @@ export default {
color: #999999; color: #999999;
} }
} }
.edit-page.edit-tmpl { .edit-page.edit-tmpl {
background: #ffffff; background: #ffffff;
...@@ -483,10 +473,12 @@ export default { ...@@ -483,10 +473,12 @@ export default {
color: #333333; color: #333333;
} }
} }
.content-box { .content-box {
padding: 0 20px 20px; padding: 0 20px 20px;
background: #ffffff; background: #ffffff;
} }
.car-type-list { .car-type-list {
max-height: 300px; max-height: 300px;
overflow-y: scroll; overflow-y: scroll;
...@@ -498,6 +490,7 @@ export default { ...@@ -498,6 +490,7 @@ export default {
margin-right: 2px; margin-right: 2px;
vertical-align: middle; vertical-align: middle;
} }
.edit-form-container { .edit-form-container {
::v-deep .el-textarea { ::v-deep .el-textarea {
width: 432px !important; width: 432px !important;
......
<template> <template>
<div> <div>
<baseDialog :is-show.sync="dialogShow" :config="dialogConfig.setting" :dialog-config="dialogConfig.config" @closeDialog="handleDetailClose(false)"> <baseDialog :is-show.sync="dialogShow" :config="dialogConfig.setting" :dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose(false)">
<div class="edit-order-dialog" v-if="dialogShow"> <div class="edit-order-dialog" v-if="dialogShow">
<div class="addressTitle"> <div class="addressTitle">
<img src="../images/addressIcon.webp" alt="" class="icon" /> <img src="../images/addressIcon.webp" alt="" class="icon" />
...@@ -23,18 +24,19 @@ ...@@ -23,18 +24,19 @@
{{ detailInfo.purchaseOrderRemark }}</span></span> {{ detailInfo.purchaseOrderRemark }}</span></span>
</div> --> </div> -->
<div class="table-class"> <div class="table-class">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :has-page="hasPage" :table-data="tableList"> <d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :has-page="hasPage"
:table-data="tableList">
<div slot="nowPurNum" slot-scope="scope" style="margin: 0 8px;"> <div slot="nowPurNum" slot-scope="scope" style="margin: 0 8px;">
<!-- 未退货才可以 --> <!-- 未退货才可以 -->
<div v-if=" <div v-if="(tableList[scope.index].purchaseNumber == 0 ||
(tableList[scope.index].purchaseNumber == 0 ||
tableList[scope.index].purchaseNumber != tableList[scope.index].purchaseNumber !=
tableList[scope.index].goodsNumber) && scope.scope.refundStatus != 'Y' tableList[scope.index].goodsNumber) && scope.scope.refundStatus != 'Y'
"> ">
<!-- 判断是否当前账户发货 --> <!-- 判断是否当前账户发货 -->
<el-input v-if=" <el-input v-if="(isEmptyEdit &&
(isEmptyEdit && !tableList[scope.index].shipperUuid) || tableList[scope.index].shipperUuid == userInfo.detail.uuid"
!tableList[scope.index].shipperUuid) || tableList[scope.index].shipperUuid == userInfo.detail.uuid" :class="{ 'border-red': !nowPurNumList[scope.index] && isSubmit }" placeholder="请输入" v-model="nowPurNumList[scope.index]" @input="(e) => handleInput(e, scope)"></el-input> :class="{ 'border-red': !nowPurNumList[scope.index] && isSubmit }" placeholder="请输入"
v-model="nowPurNumList[scope.index]" @input="(e) => handleInput(e, scope)"></el-input>
<!-- <div v-if="detailInfo.tableData[scope.index].shipperUuid != userInfo.detail.uuid">{{ detailInfo.tableData[scope.index].shipper }}</div> --> <!-- <div v-if="detailInfo.tableData[scope.index].shipperUuid != userInfo.detail.uuid">{{ detailInfo.tableData[scope.index].shipper }}</div> -->
<div v-else> <div v-else>
已分配:{{ tableList[scope.index].shipper }} 已分配:{{ tableList[scope.index].shipper }}
...@@ -49,7 +51,8 @@ ...@@ -49,7 +51,8 @@
</div> </div>
</div> </div>
<div slot="cardNum" slot-scope="scope" style="margin: 0 8px;"> <div slot="cardNum" slot-scope="scope" style="margin: 0 8px;">
<div v-if="tableList[scope.index].entityCardFlag != 'Y' || (tableList[scope.index].shipperUuid && tableList[scope.index].shipperUuid != userInfo.detail.uuid)"> <div
v-if="tableList[scope.index].entityCardFlag != 'Y' || (tableList[scope.index].shipperUuid && tableList[scope.index].shipperUuid != userInfo.detail.uuid)">
- -
</div> </div>
<div v-else-if="tableList[scope.index].purchaseNumber != tableList[scope.index].goodsNumber"> <div v-else-if="tableList[scope.index].purchaseNumber != tableList[scope.index].goodsNumber">
...@@ -83,10 +86,12 @@ ...@@ -83,10 +86,12 @@
<div class="form-content"> <div class="form-content">
<el-form label-width="100px" :rules="dialogRules" :model="dialogData" ref="delivery-dialog-form"> <el-form label-width="100px" :rules="dialogRules" :model="dialogData" ref="delivery-dialog-form">
<el-form-item label="承运公司:" prop="deliveryCompany"> <el-form-item label="承运公司:" prop="deliveryCompany">
<el-input placeholder="请输入承运物流公司" maxlength="20" v-model.trim="dialogData.deliveryCompany" class="dis-in-block" /> <el-input placeholder="请输入承运物流公司" maxlength="20" v-model.trim="dialogData.deliveryCompany"
class="dis-in-block" />
</el-form-item> </el-form-item>
<el-form-item label="承运单号:" prop="deliveryNumber"> <el-form-item label="承运单号:" prop="deliveryNumber">
<el-input maxlength="50" placeholder="请输入承运物流单号" v-model.trim="dialogData.deliveryNumber" class="dis-in-block" @input="deliveryNumberInput" /> <el-input maxlength="50" placeholder="请输入承运物流单号" v-model.trim="dialogData.deliveryNumber"
class="dis-in-block" @input="deliveryNumberInput" />
</el-form-item> </el-form-item>
<el-form-item label="发货时间:" prop="deliveryDate"> <el-form-item label="发货时间:" prop="deliveryDate">
<el-date-picker class="dis-in-block" v-model="dialogData.deliveryDate" type="datetime" placeholder="选择日期时间"> <el-date-picker class="dis-in-block" v-model="dialogData.deliveryDate" type="datetime" placeholder="选择日期时间">
...@@ -108,11 +113,15 @@ ...@@ -108,11 +113,15 @@
:value="item.id" :value="item.id"
/> />
</el-select> --> </el-select> -->
<el-select class="dis-in-block" v-model="dialogData.shippingWarehouseId" clearable placeholder="请选择发货仓库" @change="selectChange($event)" @blur="selectBlur" @focus="selectFocus" filterable> <el-select class="dis-in-block" v-model="dialogData.shippingWarehouseId" clearable placeholder="请选择发货仓库"
<el-option v-for="(item, index) in shippingWarehouseList" :key="item.id" :label="item.name" :value="item.id"> @change="selectChange($event)" @blur="selectBlur" @focus="selectFocus" filterable>
<el-option v-for="(item, index) in shippingWarehouseList" :key="item.id" :label="item.name"
:value="item.id">
<!-- 发货仓库 --> <!-- 发货仓库 -->
<div class="flex-option"> <div class="flex-option">
<el-input v-show="editOptionIndex == index" :maxlength="10" class="add-option-input" :autofocus="true" @click.stop.native="editOptionFocus" v-model.trim="editOptionValue" size="small" placeholder="请输入" /> <el-input v-show="editOptionIndex == index" :maxlength="10" class="add-option-input"
:autofocus="true" @click.stop.native="editOptionFocus" v-model.trim="editOptionValue" size="small"
placeholder="请输入" />
<span v-show="editOptionIndex == -1 || editOptionIndex != index <span v-show="editOptionIndex == -1 || editOptionIndex != index
" class="add-option-input">{{ item.name }}</span> " class="add-option-input">{{ item.name }}</span>
<div> <div>
...@@ -122,15 +131,18 @@ ...@@ -122,15 +131,18 @@
<i v-show="shippingWarehouseList.length > 1 && <i v-show="shippingWarehouseList.length > 1 &&
editOptionIndex == index editOptionIndex == index
" class="el-icon-check option_icon add_icon" @click.stop="editOptionConfirm(item.id)" /> " class="el-icon-check option_icon add_icon" @click.stop="editOptionConfirm(item.id)" />
<i v-if="shippingWarehouseList.length > 1" class="el-icon-close del_icon" @click.stop="delOption(item.id)" /> <i v-if="shippingWarehouseList.length > 1" class="el-icon-close del_icon"
@click.stop="delOption(item.id)" />
</div> </div>
</div> </div>
</el-option> </el-option>
<div class="add-option"> <div class="add-option">
<div v-if="showOptionInput" class="flex-option"> <div v-if="showOptionInput" class="flex-option">
<el-input class="add-option-input" :maxlength="10" v-model.trim="addOptionValue" size="small" placeholder="请输入" @blur="clearValidateHandle" id="add-option-input" /> <el-input class="add-option-input" :maxlength="10" v-model.trim="addOptionValue" size="small"
placeholder="请输入" @blur="clearValidateHandle" id="add-option-input" />
<div> <div>
<i v-if="addOptionValue" class="el-icon-check option_icon add_icon" @click.stop="addOptionConfirm()" /> <i v-if="addOptionValue" class="el-icon-check option_icon add_icon"
@click.stop="addOptionConfirm()" />
<i class="el-icon-close option_icon del_icon" @click.stop="delOption(undefined)" /> <i class="el-icon-close option_icon del_icon" @click.stop="delOption(undefined)" />
</div> </div>
</div> </div>
...@@ -152,11 +164,13 @@ ...@@ -152,11 +164,13 @@
<div class="footer"> <div class="footer">
<el-button @click="handleDetailClose(false)">取消</el-button> <el-button @click="handleDetailClose(false)">取消</el-button>
<el-button @click="submit" type="primary" v-preventReClick :loading="$store.state.d2admin.loading.value">确定</el-button> <el-button @click="submit" type="primary" v-preventReClick
:loading="$store.state.d2admin.loading.value">确定</el-button>
</div> </div>
</div> </div>
</baseDialog> </baseDialog>
<card-dialog v-if="cardVisible" :card-visible="cardVisible" :order-info="orderInfo" :card-max-num="cardMaxNum" :selected-list="selectedCardList" @handleClose="handleCardDialog" @handleConfirm="handleCardConfirm"></card-dialog> <card-dialog v-if="cardVisible" :card-visible="cardVisible" :order-info="orderInfo" :card-max-num="cardMaxNum"
:selected-list="selectedCardList" @handleClose="handleCardDialog" @handleConfirm="handleCardConfirm"></card-dialog>
</div> </div>
</template> </template>
...@@ -254,6 +268,11 @@ export default { ...@@ -254,6 +268,11 @@ export default {
prop: 'upgradeGoodsName' prop: 'upgradeGoodsName'
}, },
{ {
label: "供应商名称",
prop: 'thirdPartyName',
width: 100,
},
{
label: "产品编码", label: "产品编码",
prop: "type" prop: "type"
}, },
...@@ -261,6 +280,11 @@ export default { ...@@ -261,6 +280,11 @@ export default {
label: "规格", label: "规格",
prop: "specificationData" prop: "specificationData"
}, },
{
label: '供应商编码',
prop: 'thirdPartyCode',
width: 100
},
{ {
label: '适用车型', label: '适用车型',
...@@ -309,6 +333,10 @@ export default { ...@@ -309,6 +333,10 @@ export default {
width: 150 width: 150
}, },
{ {
label: "产品别名",
prop: "purchaseGoodsName",
},
{
label: "已发货数量", label: "已发货数量",
prop: "purchaseNumber", prop: "purchaseNumber",
width: 120, width: 120,
...@@ -661,7 +689,7 @@ export default { ...@@ -661,7 +689,7 @@ export default {
font-size: 14px; font-size: 14px;
color: #666666; color: #666666;
> span { >span {
margin-right: 20px; margin-right: 20px;
margin-bottom: 10px; margin-bottom: 10px;
} }
......
<template> <template>
<baseDialog :is-show.sync="dialogShow" <baseDialog :is-show.sync="dialogShow" :config="dialogConfig.setting" :dialog-config="dialogConfig.config"
:config="dialogConfig.setting"
:dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose"> @closeDialog="handleDetailClose">
<div v-if="dialogShow" class="detail-content"> <div v-if="dialogShow" class="detail-content">
<div class="addressTitle"> <div class="addressTitle">
<img src="../images/addressIcon.webp" <img src="../images/addressIcon.webp" alt="" class="icon" />
alt=""
class="icon" />
<span class="title">{{ paramsObj.merchantName }}</span> <span class="title">{{ paramsObj.merchantName }}</span>
</div> </div>
<div class="address-info"> <div class="address-info">
...@@ -42,8 +38,7 @@ ...@@ -42,8 +38,7 @@
</span> </span>
</span> </span>
</div> </div>
<div v-if="detailInfo.terminateDeliveryInstruction" <div v-if="detailInfo.terminateDeliveryInstruction" class="address-info">
class="address-info">
<span class="address"> <span class="address">
结束发货说明:<span class="label"> 结束发货说明:<span class="label">
{{ {{
...@@ -53,28 +48,18 @@ ...@@ -53,28 +48,18 @@
</span> </span>
</div> </div>
<div class="table-class"> <div class="table-class">
<d2-table ref="purchaseOrderDetailTable" <d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :table-data="detailInfo.tableData"
:table-params="tableParams" :table-total="detailInfo.tableTotal" @refreshTable="refreshTable">
:table-data="detailInfo.tableData"
:table-total="detailInfo.tableTotal"
@refreshTable="refreshTable">
<template #upgradeGoodsName="scope"> <template #upgradeGoodsName="scope">
<div> <div>
<img v-if="scope.scope.refundStatus == 'Y'" <img v-if="scope.scope.refundStatus == 'Y'" class="return" src="@/assets/retrun.png" alt="" />
class="return"
src="@/assets/retrun.png"
alt="" />
<span>{{ scope.scope.upgradeGoodsName }}</span> <span>{{ scope.scope.upgradeGoodsName }}</span>
</div> </div>
</template> </template>
<template #uploadFileUrls="scope"> <template #uploadFileUrls="scope">
<div v-if="scope.scope.uploadFileUrls"> <div v-if="scope.scope.uploadFileUrls">
<el-image fit="fill" <el-image fit="fill" :preview-src-list="scope.scope.uploadFileUrls.split(',')
:preview-src-list=" " :src="scope.scope.uploadFileUrls.split(',')[0]" style="width: 36px; height: 36px">
scope.scope.uploadFileUrls.split(',')
"
:src="scope.scope.uploadFileUrls.split(',')[0]"
style="width: 36px; height: 36px">
</el-image> </el-image>
</div> </div>
<div v-else> <div v-else>
...@@ -82,27 +67,21 @@ ...@@ -82,27 +67,21 @@
</div> </div>
</template> </template>
<template #filmRollNo="scope"> <template #filmRollNo="scope">
<div v-if=" <div v-if="scope.scope.filmRollList
scope.scope.filmRollList
&& scope.scope.filmRollList.length == 1 && scope.scope.filmRollList.length == 1
"> ">
{{ scope.scope.filmRollList[0] }} {{ scope.scope.filmRollList[0] }}
</div> </div>
<div v-else-if=" <div v-else-if="scope.scope.filmRollList
scope.scope.filmRollList
&& scope.scope.filmRollList.length > 1 && scope.scope.filmRollList.length > 1
"> ">
<el-popover placement="top" <el-popover placement="top" width="200" trigger="hover">
width="200"
trigger="hover">
<div class="film-roll-box"> <div class="film-roll-box">
<div class="title"> <div class="title">
膜卷号 膜卷号
</div> </div>
<div v-for="(subItem, subIndex) in scope <div v-for="(subItem, subIndex) in scope
.scope.filmRollList" .scope.filmRollList" :key="subIndex" class="merchant-item">
:key="subIndex"
class="merchant-item">
{{ subItem }} {{ subItem }}
</div> </div>
</div> </div>
...@@ -129,16 +108,13 @@ ...@@ -129,16 +108,13 @@
</div> </div>
</template> </template>
<template #carName="scope"> <template #carName="scope">
<el-tooltip v-if=" <el-tooltip v-if="scope.scope.suitCarTypeList
scope.scope.suitCarTypeList
&& scope.scope.suitCarTypeList.length && scope.scope.suitCarTypeList.length
" " placement="top">
placement="top">
<template #content> <template #content>
<div class="car-type-list"> <div class="car-type-list">
<div v-for="(item, index) in scope.scope <div v-for="(item, index) in scope.scope
.suitCarTypeList" .suitCarTypeList" :key="index">
:key="index">
{{ {{
`${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}` `${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}`
}} }}
...@@ -155,10 +131,8 @@ ...@@ -155,10 +131,8 @@
</template> </template>
</d2-table> </d2-table>
</div> </div>
<ExamineRecord v-if="detailInfo.auditDetaiList && !paramsObj.factoryType" <ExamineRecord v-if="detailInfo.auditDetaiList && !paramsObj.factoryType" :use-expand="false"
:use-expand="false" :list="detailInfo.auditDetaiList" style="margin-top:20px;" />
:list="detailInfo.auditDetaiList"
style="margin-top:20px;" />
</div> </div>
</baseDialog> </baseDialog>
...@@ -224,6 +198,11 @@ export default { ...@@ -224,6 +198,11 @@ export default {
prop: "upgradeGoodsName", prop: "upgradeGoodsName",
}, },
{ {
label: "供应商名称",
prop: 'thirdPartyName',
width: 100,
},
{
label: "产品编码", label: "产品编码",
prop: "type", prop: "type",
}, },
...@@ -232,11 +211,20 @@ export default { ...@@ -232,11 +211,20 @@ export default {
prop: "specificationData", prop: "specificationData",
}, },
{ {
label: '供应商编码',
prop: 'thirdPartyCode',
width: 100,
},
{
label: "适用车型", label: "适用车型",
addHtml: "carName", addHtml: "carName",
width: 200, width: 200,
}, },
{ {
label: "产品别名",
prop: "purchaseGoodsName",
},
{
label: "系列", label: "系列",
prop: "goodsName", prop: "goodsName",
}, },
...@@ -268,8 +256,7 @@ export default { ...@@ -268,8 +256,7 @@ export default {
= baseConfig.membraneTypeList.includes( = baseConfig.membraneTypeList.includes(
cellValue.goodsType, cellValue.goodsType,
) )
? `${ ? `${cellValue.conversionValue
cellValue.conversionValue
? cellValue.goodsNumber ? cellValue.goodsNumber
* cellValue.conversionValue * cellValue.conversionValue
: "-" : "-"
...@@ -448,7 +435,7 @@ export default { ...@@ -448,7 +435,7 @@ export default {
font-size: 14px; font-size: 14px;
color: #666666; color: #666666;
> span { >span {
margin-right: 20px; margin-right: 20px;
margin-bottom: 10px; margin-bottom: 10px;
} }
......
<!-- 驳回 --> <!-- 驳回 -->
<template> <template>
<baseDialog :dialog-config="dialogConfig" <baseDialog :dialog-config="dialogConfig" :is-show.sync="visible" class="accountDailog" @handleClick="handleAddConfirm">
:is-show.sync="visible"
class="accountDailog"
@handleClick="handleAddConfirm">
<div class="reject-dialog"> <div class="reject-dialog">
<div class="edit-page edit-tmpl"> <div class="edit-page edit-tmpl">
<div class="title"> <div class="title">
产品信息 产品信息
</div> </div>
<div class="content-box"> <div class="content-box">
<d2-table ref="purchaseOrderDetailTable" <d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :table-data="detailInfo.tableData"
:table-params="tableParams" :layout="layout" :table-total="detailInfo.tableTotal" @refreshTable="refreshTable">
:table-data="detailInfo.tableData"
:layout="layout"
:table-total="detailInfo.tableTotal"
@refreshTable="refreshTable">
<template #upgradeGoodsName="scope"> <template #upgradeGoodsName="scope">
<div> <div>
<img v-if="scope.scope.refundStatus == 'Y'" <img v-if="scope.scope.refundStatus == 'Y'" class="return" src="@/assets/retrun.png"
class="return"
src="@/assets/retrun.png"
alt="" /> alt="" />
<span>{{ scope.scope.upgradeGoodsName }}</span> <span>{{ scope.scope.upgradeGoodsName }}</span>
</div> </div>
</template> </template>
<template #filmRollNo="scope"> <template #filmRollNo="scope">
<div v-if=" <div v-if="scope.scope.filmRollList
scope.scope.filmRollList
&& scope.scope.filmRollList.length == 1 && scope.scope.filmRollList.length == 1
"> ">
{{ scope.scope.filmRollList[0] }} {{ scope.scope.filmRollList[0] }}
</div> </div>
<div v-else-if=" <div v-else-if="scope.scope.filmRollList
scope.scope.filmRollList
&& scope.scope.filmRollList.length > 1 && scope.scope.filmRollList.length > 1
"> ">
<el-popover placement="top" <el-popover placement="top" width="200" trigger="hover">
width="200"
trigger="hover">
<div class="film-roll-box"> <div class="film-roll-box">
<div class="title"> <div class="title">
膜卷号 膜卷号
</div> </div>
<div v-for="(subItem, subIndex) in scope.scope.filmRollList" <div v-for="(subItem, subIndex) in scope.scope.filmRollList" :key="subIndex"
:key="subIndex"
class="merchant-item"> class="merchant-item">
{{ subItem }} {{ subItem }}
</div> </div>
...@@ -65,15 +51,12 @@ ...@@ -65,15 +51,12 @@
</div> </div>
</template> </template>
<template #carName="scope"> <template #carName="scope">
<el-tooltip v-if=" <el-tooltip v-if="scope.scope.suitCarTypeList
scope.scope.suitCarTypeList
&& scope.scope.suitCarTypeList.length && scope.scope.suitCarTypeList.length
" " placement="top">
placement="top">
<template #content> <template #content>
<div class="car-type-list"> <div class="car-type-list">
<div v-for="(item, index) in scope.scope.suitCarTypeList" <div v-for="(item, index) in scope.scope.suitCarTypeList" :key="index">
:key="index">
{{ {{
`${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}` `${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}`
}} }}
...@@ -87,43 +70,29 @@ ...@@ -87,43 +70,29 @@
</div> </div>
</template> </template>
<template #actionSlot="scope"> <template #actionSlot="scope">
<el-button type="text" <el-button type="text" @click="handleInventoryDetail(scope.scope)">
@click="handleInventoryDetail(scope.scope)">
库存明细 库存明细
</el-button> </el-button>
</template> </template>
</d2-table> </d2-table>
</div> </div>
</div> </div>
<el-form ref="refundForm" <el-form ref="refundForm" label-width="150px" :model="infoForm" :rules="formRules">
label-width="150px"
:model="infoForm"
:rules="formRules">
<el-form-item label="驳回节点:" prop="rejectNode"> <el-form-item label="驳回节点:" prop="rejectNode">
<el-select v-model="infoForm.rejectNode" <el-select v-model="infoForm.rejectNode" placeholder="请选择驳回节点" style="width: 450px">
placeholder="请选择驳回节点" <el-option v-for="item in baseData.rejectNodeOptions" :key="item.id" :label="item.label"
style="width: 450px">
<el-option v-for="item in baseData.rejectNodeOptions"
:key="item.id"
:label="item.label"
:value="item.id" /> :value="item.id" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="驳回原因:" prop="rejectCause"> <el-form-item label="驳回原因:" prop="rejectCause">
<el-input v-model="infoForm.rejectCause" <el-input v-model="infoForm.rejectCause" type="textarea" :row="4" show-word-limit placeholder="请输入驳回原因"
type="textarea" maxlength="200" class="reject-input" />
:row="4"
show-word-limit
placeholder="请输入驳回原因"
maxlength="200"
class="reject-input" />
</el-form-item> </el-form-item>
</el-form> </el-form>
<ExamineRecord :list="originalAuditDetaiList" style="margin-top:20px;" /> <ExamineRecord :list="originalAuditDetaiList" style="margin-top:20px;" />
</div> </div>
<StockDetailDialog v-if="stockDetailDialogVisible" <StockDetailDialog v-if="stockDetailDialogVisible" :visible.sync="stockDetailDialogVisible"
:visible.sync="stockDetailDialogVisible"
:record-info="stockDetailInfo" /> :record-info="stockDetailInfo" />
</baseDialog> </baseDialog>
</template> </template>
...@@ -216,6 +185,11 @@ export default { ...@@ -216,6 +185,11 @@ export default {
prop: "upgradeGoodsName", prop: "upgradeGoodsName",
}, },
{ {
label: "供应商名称",
prop: 'thirdPartyName',
width: 100,
},
{
label: "产品编码", label: "产品编码",
prop: "type", prop: "type",
}, },
...@@ -224,6 +198,11 @@ export default { ...@@ -224,6 +198,11 @@ export default {
prop: "specificationData", prop: "specificationData",
}, },
{ {
label: '供应商编码',
prop: 'thirdPartyCode',
width: 100
},
{
label: "采购数量", label: "采购数量",
prop: "goodsNumber", prop: "goodsNumber",
formatter: (cellValue) => { formatter: (cellValue) => {
...@@ -244,8 +223,7 @@ export default { ...@@ -244,8 +223,7 @@ export default {
const condition = baseConfig.membraneTypeList.includes( const condition = baseConfig.membraneTypeList.includes(
cellValue.goodsType, cellValue.goodsType,
) )
? `${ ? `${cellValue.conversionValue
cellValue.conversionValue
? cellValue.goodsNumber * cellValue.conversionValue ? cellValue.goodsNumber * cellValue.conversionValue
: "-" : "-"
}米` }米`
...@@ -256,6 +234,10 @@ export default { ...@@ -256,6 +234,10 @@ export default {
}, },
}, },
{ {
label: "产品别名",
prop: "purchaseGoodsName",
},
{
label: "已发货数量", label: "已发货数量",
prop: "purchaseNumber", prop: "purchaseNumber",
width: 110, width: 110,
...@@ -410,6 +392,7 @@ export default { ...@@ -410,6 +392,7 @@ export default {
.tips { .tips {
color: #999999; color: #999999;
} }
.edit-page.edit-tmpl { .edit-page.edit-tmpl {
background: #ffffff; background: #ffffff;
...@@ -423,10 +406,12 @@ export default { ...@@ -423,10 +406,12 @@ export default {
color: #333333; color: #333333;
} }
} }
.content-box { .content-box {
padding: 0 20px 20px; padding: 0 20px 20px;
background: #ffffff; background: #ffffff;
} }
.car-type-list { .car-type-list {
max-height: 300px; max-height: 300px;
overflow-y: scroll; overflow-y: scroll;
......
...@@ -3,16 +3,11 @@ ...@@ -3,16 +3,11 @@
<d2-container class="container"> <d2-container class="container">
<template #header> <template #header>
<div class="header"> <div class="header">
<d2-search ref="showSearch" <d2-search ref="showSearch" :labelWidth="labelWidth" class="show-search" :form-data="showFormData"
class="show-search"
:form-data="showFormData"
:search-form="searchForm"> :search-form="searchForm">
</d2-search> </d2-search>
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" <el-button :id="tableParams.btnId" handle size="small" type="primary">
handle
size="small"
type="primary">
查询 查询
</el-button> </el-button>
<el-button size="small" @click="handleReset"> <el-button size="small" @click="handleReset">
...@@ -30,27 +25,18 @@ ...@@ -30,27 +25,18 @@
<auth-button category="Button" :show-btn-ids="['9090704']" /> <auth-button category="Button" :show-btn-ids="['9090704']" />
</span> </span>
</d2-table-header> </d2-table-header>
<d2-table ref="purchaseAndDeliveryTable" <d2-table ref="purchaseAndDeliveryTable" :before-search-fn="beforeSearchFn" :get-list-api="getListApi"
:before-search-fn="beforeSearchFn" :search-form="tableSearchForm" :table-params="tableParams" @searchChange="searchChange"
:get-list-api="getListApi" @selectionTable="handleSelectionTable" @setTableFinishFun="setTableFinishFun">
:search-form="tableSearchForm"
:table-params="tableParams"
@searchChange="searchChange"
@selectionTable="handleSelectionTable"
@setTableFinishFun="setTableFinishFun">
<template #upgradeGoodsName="scope"> <template #upgradeGoodsName="scope">
<div> <div>
<img v-if="scope.scope.refundStatus == 'Y'" <img v-if="scope.scope.refundStatus == 'Y'" alt="" class="return" src="@/assets/retrun.png">
alt=""
class="return"
src="@/assets/retrun.png">
<span>{{ scope.scope.upgradeGoodsName }}</span> <span>{{ scope.scope.upgradeGoodsName }}</span>
</div> </div>
</template> </template>
<template #suitCarTypeList="scope"> <template #suitCarTypeList="scope">
<div> <div>
<el-tooltip v-if="scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length" <el-tooltip v-if="scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length" effect="dark"
effect="dark"
placement="top"> placement="top">
<template #content> <template #content>
<div class="car-type-list"> <div class="car-type-list">
...@@ -72,7 +58,9 @@ ...@@ -72,7 +58,9 @@
</span> </span>
<!-- 确认发货 --> <!-- 确认发货 -->
<!-- style="margin-right: 10px;" --> <!-- style="margin-right: 10px;" -->
<span v-if="scope.scope.refundStatus != 'Y' && (scope.scope.deliveryStatus == 1 || scope.scope.deliveryStatus == 3)" style="margin-right: 10px;"> <span
v-if="scope.scope.refundStatus != 'Y' && (scope.scope.deliveryStatus == 1 || scope.scope.deliveryStatus == 3)"
style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9090702']" /> <auth-button :data="scope.scope" :show-btn-ids="['9090702']" />
</span> </span>
<!-- <el-button :data="scope.scope" type="text" @click="handleDelivery(scope.scope)">发货</el-button> --> <!-- <el-button :data="scope.scope" type="text" @click="handleDelivery(scope.scope)">发货</el-button> -->
...@@ -89,36 +77,20 @@ ...@@ -89,36 +77,20 @@
</template> </template>
</d2-table> </d2-table>
</div> </div>
<FactoryDeliveryDetailDialog v-if="detailVisible" <FactoryDeliveryDetailDialog v-if="detailVisible" :record-info="detailInfo" :visible.sync="detailVisible">
:record-info="detailInfo"
:visible.sync="detailVisible">
</FactoryDeliveryDetailDialog> </FactoryDeliveryDetailDialog>
<EditOrderDialog v-if="editVisible" <EditOrderDialog v-if="editVisible" page="factory" :params-obj="dialogData" :table-list="editTableList"
page="factory" :visible.sync="editVisible" @editClose="editClose">
:params-obj="dialogData"
:table-list="editTableList"
:visible.sync="editVisible"
@editClose="editClose">
</EditOrderDialog> </EditOrderDialog>
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting" --> <!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting" -->
<baseDialog :dialog-config="rejectConfig.config" <baseDialog :dialog-config="rejectConfig.config" :is-show.sync="rejectVisible" @handleClick="handleRejectConfirm">
:is-show.sync="rejectVisible"
@handleClick="handleRejectConfirm">
<!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm" <!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm"
@closeDialog="handleRejectClose"> --> @closeDialog="handleRejectClose"> -->
<div class="reject-dialog"> <div class="reject-dialog">
<el-form ref="delivery-dialog-form" <el-form ref="delivery-dialog-form" label-width="150px" :model="rejectData" :rules="rejectRules">
label-width="150px"
:model="rejectData"
:rules="rejectRules">
<el-form-item label="驳回原因:" prop="rejectCause"> <el-form-item label="驳回原因:" prop="rejectCause">
<el-input v-model.trim="rejectData.rejectCause" <el-input v-model.trim="rejectData.rejectCause" class="dis-in-block reject-input" maxlength="50"
class="dis-in-block reject-input" placeholder="请输入驳回原因" :rows="3" show-word-limit type="textarea" />
maxlength="50"
placeholder="请输入驳回原因"
:rows="3"
show-word-limit
type="textarea" />
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -149,6 +121,7 @@ export default { ...@@ -149,6 +121,7 @@ export default {
}, },
data() { data() {
return { return {
labelWidth: '100px',
editVisible: false, editVisible: false,
editTableList: [], editTableList: [],
reg: { reg: {
...@@ -251,6 +224,19 @@ export default { ...@@ -251,6 +224,19 @@ export default {
type: "datePicker", type: "datePicker",
isClear: true, isClear: true,
}, },
{
label: '供应商名称',
name: 'thirdPartyName',
type: 'input',
isClear: true,
keyFn: this.keyDowmGetList
}, {
label: '供应商编码',
name: 'thirdPartyCode',
type: 'input',
isClear: true,
keyFn: this.keyDowmGetList
}
], ],
selectedList: [], selectedList: [],
getListApi: warehousedeliverPage, getListApi: warehousedeliverPage,
...@@ -268,6 +254,11 @@ export default { ...@@ -268,6 +254,11 @@ export default {
prop: "upgradeGoodsName", prop: "upgradeGoodsName",
}, },
{ {
label: '供应商名称',
prop: 'thirdPartyName',
width: 100
},
{
label: "产品编码", label: "产品编码",
prop: "type", prop: "type",
}, },
...@@ -285,6 +276,11 @@ export default { ...@@ -285,6 +276,11 @@ export default {
}, },
}, },
{ {
label: '供应商编码',
prop: 'thirdPartyCode',
width: 100
},
{
label: "系列", label: "系列",
prop: "goodsName", prop: "goodsName",
}, },
...@@ -312,6 +308,10 @@ export default { ...@@ -312,6 +308,10 @@ export default {
prop: "purchaseNumber", prop: "purchaseNumber",
}, },
{ {
label: "产品别名",
prop: "purchaseGoodsName",
},
{
label: "订单编号", label: "订单编号",
prop: "orderCode", prop: "orderCode",
}, },
...@@ -698,6 +698,7 @@ export default { ...@@ -698,6 +698,7 @@ export default {
max-height: 320px; max-height: 320px;
overflow-y: scroll; overflow-y: scroll;
} }
.return { .return {
width: 15px; width: 15px;
height: 14px; height: 14px;
......
...@@ -3,16 +3,11 @@ ...@@ -3,16 +3,11 @@
<d2-container class="container"> <d2-container class="container">
<template #header> <template #header>
<div class="header"> <div class="header">
<d2-search ref="showSearch" <d2-search ref="showSearch" :labelWidth="labelWidth" class="show-search" :form-data="showFormData"
class="show-search"
:form-data="showFormData"
:search-form="searchForm"> :search-form="searchForm">
</d2-search> </d2-search>
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" <el-button :id="tableParams.btnId" handle size="small" type="primary">
handle
size="small"
type="primary">
查询 查询
</el-button> </el-button>
<el-button size="small" @click="handleReset"> <el-button size="small" @click="handleReset">
...@@ -34,21 +29,13 @@ ...@@ -34,21 +29,13 @@
<auth-button category="Button" :show-btn-ids="['9090405']" /> <auth-button category="Button" :show-btn-ids="['9090405']" />
</span> </span>
</d2-table-header> </d2-table-header>
<d2-table ref="purchaseAndDeliveryTable" <d2-table ref="purchaseAndDeliveryTable" :before-search-fn="beforeSearchFn" :get-list-api="getListApi"
:before-search-fn="beforeSearchFn" :search-form="tableSearchForm" :table-params="tableParams" @current-change="handleCurrentChange"
:get-list-api="getListApi" @searchChange="searchChange" @selectionTable="handleSelectionTable" @setTableFinishFun="setTableFinishFun">
:search-form="tableSearchForm"
:table-params="tableParams"
@current-change="handleCurrentChange"
@searchChange="searchChange"
@selectionTable="handleSelectionTable"
@setTableFinishFun="setTableFinishFun">
<template #uploadFileUrls="scope"> <template #uploadFileUrls="scope">
<div v-if="scope.scope.uploadFileUrls"> <div v-if="scope.scope.uploadFileUrls">
<el-image fit="fill" <el-image fit="fill" :preview-src-list="scope.scope.uploadFileUrls.split(',')"
:preview-src-list="scope.scope.uploadFileUrls.split(',')" :src="scope.scope.uploadFileUrls.split(',')[0]" style="width: 36px; height: 36px;">
:src="scope.scope.uploadFileUrls.split(',')[0]"
style="width: 36px; height: 36px;">
</el-image> </el-image>
</div> </div>
<div v-else> <div v-else>
...@@ -57,17 +44,13 @@ ...@@ -57,17 +44,13 @@
</template> </template>
<template #upgradeGoodsName="scope"> <template #upgradeGoodsName="scope">
<div> <div>
<img v-if="scope.scope.refundStatus == 'Y'" <img v-if="scope.scope.refundStatus == 'Y'" alt="" class="return" src="@/assets/retrun.png">
alt=""
class="return"
src="@/assets/retrun.png">
<span>{{ scope.scope.upgradeGoodsName }}</span> <span>{{ scope.scope.upgradeGoodsName }}</span>
</div> </div>
</template> </template>
<template #suitCarTypeList="scope"> <template #suitCarTypeList="scope">
<div> <div>
<el-tooltip v-if="scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length" <el-tooltip v-if="scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length" effect="dark"
effect="dark"
placement="top"> placement="top">
<template #content> <template #content>
<div class="car-type-list"> <div class="car-type-list">
...@@ -84,9 +67,7 @@ ...@@ -84,9 +67,7 @@
<template #remark="scope"> <template #remark="scope">
<div> <div>
<el-tooltip v-if="scope.scope.purchaseOrderGoodsRemark" <el-tooltip v-if="scope.scope.purchaseOrderGoodsRemark"
:content="scope.scope.purchaseOrderGoodsRemark" :content="scope.scope.purchaseOrderGoodsRemark" effect="dark" placement="top">
effect="dark"
placement="top">
<span class="one-line-ellipsis">{{ scope.scope.purchaseOrderGoodsRemark }}</span> <span class="one-line-ellipsis">{{ scope.scope.purchaseOrderGoodsRemark }}</span>
</el-tooltip> </el-tooltip>
<div v-else> <div v-else>
...@@ -101,7 +82,9 @@ ...@@ -101,7 +82,9 @@
<auth-button :data="scope.scope" :show-btn-ids="['9090401']" /> <auth-button :data="scope.scope" :show-btn-ids="['9090401']" />
</span> </span>
<!-- 确认发货 --> <!-- 确认发货 -->
<span v-if="scope.scope.refundStatus != 'Y' && (scope.scope.deliveryStatus == 1 || scope.scope.deliveryStatus == 3) && scope.scope.distributionStatus == 0" style="margin-right: 10px"> <span
v-if="scope.scope.refundStatus != 'Y' && (scope.scope.deliveryStatus == 1 || scope.scope.deliveryStatus == 3) && scope.scope.distributionStatus == 0"
style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9090402']" /> <auth-button :data="scope.scope" :show-btn-ids="['9090402']" />
</span> </span>
<!-- 分配 --> <!-- 分配 -->
...@@ -120,42 +103,27 @@ ...@@ -120,42 +103,27 @@
</template> </template>
</d2-table> </d2-table>
</div> </div>
<OrderDeatilDialog v-if="detailVisible" <OrderDeatilDialog v-if="detailVisible" :params-obj="paramsObj" :visible.sync="detailVisible" :is-delivery="true">
:params-obj="paramsObj"
:visible.sync="detailVisible">
</OrderDeatilDialog> </OrderDeatilDialog>
<EditOrderDialog v-if="editVisible" <EditOrderDialog v-if="editVisible" :is-empty-edit="true" :params-obj="dialogData" :table-list="editTableList"
:is-empty-edit="true" :visible.sync="editVisible" @editClose="editClose">
:params-obj="dialogData"
:table-list="editTableList"
:visible.sync="editVisible"
@editClose="editClose">
</EditOrderDialog> </EditOrderDialog>
<AllocateDialog v-if="allocateVisible" <AllocateDialog v-if="allocateVisible" :table-list="allocateTableList" :visible.sync="allocateVisible"
:table-list="allocateTableList"
:visible.sync="allocateVisible"
@editClose="allocateClose"> @editClose="allocateClose">
</AllocateDialog> </AllocateDialog>
<baseDialog :dialog-config="rejectConfig.config" <baseDialog :dialog-config="rejectConfig.config" :is-show.sync="rejectVisible" @handleClick="handleRejectConfirm">
:is-show.sync="rejectVisible"
@handleClick="handleRejectConfirm">
<div class="reject-dialog" style="margin: 0;"> <div class="reject-dialog" style="margin: 0;">
<div class="edit-page edit-tmpl"> <div class="edit-page edit-tmpl">
<div class="title"> <div class="title">
产品信息 产品信息
</div> </div>
<div class="content-box"> <div class="content-box">
<d2-table ref="purchaseOrderDetailTable" <d2-table ref="purchaseOrderDetailTable" :layout="layout" :table-data="detailInfo.tableData"
:layout="layout" :table-params="rejectTableParams" :table-total="detailInfo.tableTotal"
:table-data="detailInfo.tableData"
:table-params="rejectTableParams"
:table-total="detailInfo.tableTotal"
@refreshTable="rejectRefreshTable"> @refreshTable="rejectRefreshTable">
<template #upgradeGoodsName="scope"> <template #upgradeGoodsName="scope">
<div> <div>
<img v-if="scope.scope.refundStatus == 'Y'" <img v-if="scope.scope.refundStatus == 'Y'" alt="" class="return"
alt=""
class="return"
src="@/assets/retrun.png"> src="@/assets/retrun.png">
<span>{{ scope.scope.upgradeGoodsName }}</span> <span>{{ scope.scope.upgradeGoodsName }}</span>
</div> </div>
...@@ -165,37 +133,38 @@ ...@@ -165,37 +133,38 @@
{{ scope.scope.filmRollList[0] }} {{ scope.scope.filmRollList[0] }}
</div> </div>
<div v-else-if="scope.scope.filmRollList && scope.scope.filmRollList.length > 1"> <div v-else-if="scope.scope.filmRollList && scope.scope.filmRollList.length > 1">
<el-popover placement="top" <el-popover placement="top" trigger="hover" width="200">
trigger="hover"
width="200">
<div class="film-roll-box"> <div class="film-roll-box">
<div class="title"> <div class="title">
膜卷号 膜卷号
</div> </div>
<div v-for="(subItem, subIndex) in scope.scope.filmRollList" <div v-for="(subItem, subIndex) in scope.scope.filmRollList" :key="subIndex"
:key="subIndex"
class="merchant-item"> class="merchant-item">
{{ subItem }} {{ subItem }}
</div> </div>
</div> </div>
<template #reference> <template #reference>
<div> <div>
<span style="color: #2A58AD;">(…{{ scope.scope.filmRollList.length }})</span> <span style="color: #2A58AD;">(…{{ scope.scope.filmRollList.length
}})</span>
</div> </div>
</template> </template>
</el-popover> </el-popover>
</div> </div>
<div v-else> <div v-else>
<span style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{ '-' }}</span> <span style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{ '-'
}}</span>
</div> </div>
</template> </template>
<template #carName="scope"> <template #carName="scope">
<el-tooltip v-if="scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length" placement="top"> <el-tooltip v-if="scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length"
placement="top">
<template #content> <template #content>
<div class="car-type-list"> <div class="car-type-list">
<div v-for="(item, index) in scope.scope.suitCarTypeList" :key="index"> <div v-for="(item, index) in scope.scope.suitCarTypeList" :key="index">
{{ {{
`${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}` }} `${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}`
}}
</div> </div>
</div> </div>
</template> </template>
...@@ -208,28 +177,16 @@ ...@@ -208,28 +177,16 @@
</d2-table> </d2-table>
</div> </div>
</div> </div>
<el-form ref="delivery-dialog-form" <el-form ref="delivery-dialog-form" label-width="150px" :model="rejectData" :rules="rejectRules">
label-width="150px"
:model="rejectData"
:rules="rejectRules">
<el-form-item label="驳回节点:" prop="rejectNode"> <el-form-item label="驳回节点:" prop="rejectNode">
<el-select v-model="rejectData.rejectNode" <el-select v-model="rejectData.rejectNode" placeholder="请选择驳回节点" style="width: 450px">
placeholder="请选择驳回节点" <el-option v-for="item in baseData.rejectNodeOptions" :key="item.id" :label="item.label"
style="width: 450px">
<el-option v-for="item in baseData.rejectNodeOptions"
:key="item.id"
:label="item.label"
:value="item.id" /> :value="item.id" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="驳回原因:" prop="rejectCause"> <el-form-item label="驳回原因:" prop="rejectCause">
<el-input v-model.trim="rejectData.rejectCause" <el-input v-model.trim="rejectData.rejectCause" class="dis-in-block reject-input" maxlength="200"
class="dis-in-block reject-input" placeholder="请输入驳回原因" :rows="4" show-word-limit type="textarea" />
maxlength="200"
placeholder="请输入驳回原因"
:rows="4"
show-word-limit
type="textarea" />
</el-form-item> </el-form-item>
</el-form> </el-form>
<p style="margin-left: 150px; color: #999999;"> <p style="margin-left: 150px; color: #999999;">
...@@ -245,23 +202,15 @@ ...@@ -245,23 +202,15 @@
</div> --> </div> -->
<!-- </d2-dialog> --> <!-- </d2-dialog> -->
</baseDialog> </baseDialog>
<baseDialog :dialog-config="endConfig.config" <baseDialog :dialog-config="endConfig.config" :is-show.sync="endVisible" @handleClick="handleEndConfirm">
:is-show.sync="endVisible"
@handleClick="handleEndConfirm">
<!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm" <!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm"
@closeDialog="handleRejectClose"> --> @closeDialog="handleRejectClose"> -->
<div class="reject-dialog end-dialog"> <div class="reject-dialog end-dialog">
<el-form ref="end-dialog-form" <el-form ref="end-dialog-form" label-width="150px" :model="terminateDelivery">
label-width="150px"
:model="terminateDelivery">
<el-form-item label="备注:" prop="rejectCause"> <el-form-item label="备注:" prop="rejectCause">
<el-input v-model.trim="terminateDelivery.terminateDeliveryInstruction" <el-input v-model.trim="terminateDelivery.terminateDeliveryInstruction"
class="dis-in-block reject-input" class="dis-in-block reject-input" maxlength="200" placeholder="请输入备注信息" :rows="3"
maxlength="200" show-word-limit type="textarea" />
placeholder="请输入备注信息"
:rows="3"
show-word-limit
type="textarea" />
</el-form-item> </el-form-item>
</el-form> </el-form>
<p style="margin-left: 150px; color: #999999;"> <p style="margin-left: 150px; color: #999999;">
...@@ -314,6 +263,7 @@ export default { ...@@ -314,6 +263,7 @@ export default {
}, },
data() { data() {
return { return {
labelWidth: '100px',
picOptions: { picOptions: {
width: "138px", width: "138px",
height: "54px", height: "54px",
...@@ -404,6 +354,11 @@ export default { ...@@ -404,6 +354,11 @@ export default {
prop: "upgradeGoodsName", prop: "upgradeGoodsName",
}, },
{ {
label: "供应商名称",
prop: 'thirdPartyName',
width: 100,
},
{
label: "产品编码", label: "产品编码",
prop: "type", prop: "type",
}, },
...@@ -412,6 +367,14 @@ export default { ...@@ -412,6 +367,14 @@ export default {
prop: "specificationData", prop: "specificationData",
}, },
{ {
label: '供应商编码',
prop: 'thirdPartyCode',
width: 100,
formatter: (cellValue) => {
return cellValue?.upgradeGoods?.thirdPartyCode || '-'
}
},
{
label: "采购数量", label: "采购数量",
prop: "goodsNumber", prop: "goodsNumber",
formatter: (cellValue) => { formatter: (cellValue) => {
...@@ -436,6 +399,10 @@ export default { ...@@ -436,6 +399,10 @@ export default {
}, },
}, },
{ {
label: "产品别名",
prop: "purchaseGoodsName",
},
{
label: "单价", label: "单价",
prop: "upgradePurchasePrice", prop: "upgradePurchasePrice",
formatter: (row) => { formatter: (row) => {
...@@ -487,6 +454,8 @@ export default { ...@@ -487,6 +454,8 @@ export default {
shipper: "", shipper: "",
deliveryDateStr: "", deliveryDateStr: "",
signStatusList: [], signStatusList: [],
thirdPartyName: "",
thirdPartyCode: "",
}, },
tableSearchForm: {}, tableSearchForm: {},
tableData: [], tableData: [],
...@@ -607,6 +576,19 @@ export default { ...@@ -607,6 +576,19 @@ export default {
optionLabel: "confName", optionLabel: "confName",
optionsName: "signStatusType", optionsName: "signStatusType",
}, },
{
label: '供应商名称',
name: 'thirdPartyName',
type: 'input',
isClear: true,
keyFn: this.keyDowmGetList
}, {
label: '供应商编码',
name: 'thirdPartyCode',
type: 'input',
isClear: true,
keyFn: this.keyDowmGetList
}
], ],
selectedList: [], selectedList: [],
getListApi: getPurchaseOrderShipmentList, getListApi: getPurchaseOrderShipmentList,
...@@ -624,6 +606,14 @@ export default { ...@@ -624,6 +606,14 @@ export default {
prop: "upgradeGoodsName", prop: "upgradeGoodsName",
}, },
{ {
label: '供应商名称',
prop: 'thirdPartyName',
width: 100,
formatter: (cellValue) => {
return cellValue?.upgradeGoods?.thirdPartyName || '-'
}
},
{
label: "产品编码", label: "产品编码",
prop: "type", prop: "type",
}, },
...@@ -641,6 +631,14 @@ export default { ...@@ -641,6 +631,14 @@ export default {
}, },
}, },
{ {
label: '供应商编码',
prop: 'thirdPartyCode',
width: 100,
formatter: (cellValue) => {
return cellValue?.upgradeGoods?.thirdPartyCode || '-'
}
},
{
label: "系列", label: "系列",
prop: "goodsName", prop: "goodsName",
}, },
...@@ -684,6 +682,10 @@ export default { ...@@ -684,6 +682,10 @@ export default {
}, },
}, },
{ {
label: "产品别名",
prop: "aliasName",
},
{
label: "订单编号", label: "订单编号",
prop: "orderCode", prop: "orderCode",
}, },
...@@ -1315,6 +1317,7 @@ export default { ...@@ -1315,6 +1317,7 @@ export default {
color: #999999; color: #999999;
} }
} }
.reject-dialog.end-dialog { .reject-dialog.end-dialog {
::v-deep .el-textarea .el-input__count { ::v-deep .el-textarea .el-input__count {
right: 70px; right: 70px;
...@@ -1323,6 +1326,7 @@ export default { ...@@ -1323,6 +1326,7 @@ export default {
color: #999999; color: #999999;
} }
} }
.edit-page.edit-tmpl { .edit-page.edit-tmpl {
background: #ffffff; background: #ffffff;
...@@ -1336,10 +1340,12 @@ export default { ...@@ -1336,10 +1340,12 @@ export default {
color: #333333; color: #333333;
} }
} }
.car-type-list { .car-type-list {
max-height: 320px; max-height: 320px;
overflow-y: scroll; overflow-y: scroll;
} }
.return { .return {
width: 15px; width: 15px;
height: 14px; height: 14px;
...@@ -1351,9 +1357,11 @@ export default { ...@@ -1351,9 +1357,11 @@ export default {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
} }
.uploadFileUrl-preview { .uploadFileUrl-preview {
width: 138px; width: 138px;
height: 54px; height: 54px;
::v-deep .photo-activity { ::v-deep .photo-activity {
width: 100%; width: 100%;
height: 100%; height: 100%;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!