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>
<d2-dialog :append-to-body="appendToBody"
btn-ok-label="确定"
class="selectGoods"
: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">
<template #commodityCode>
<el-input v-model.trim="searchForm.commodityCode"
:clearable="true"
:maxlength="50"
placeholder="请输入产品ID"
:style="{ width: '100%' }"
@input="event => searchInput(event, 'commodityCode')" />
</template>
<template #type>
<!-- <el-input v-model.trim="searchForm.type"
<d2-dialog :append-to-body="appendToBody" btn-ok-label="确定" class="selectGoods" :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">
<template #commodityCode>
<el-input v-model.trim="searchForm.commodityCode" :clearable="true" :maxlength="50" placeholder="请输入产品ID"
:style="{ width: '100%' }" @input="event => searchInput(event, 'commodityCode')" />
</template>
<template #type>
<!-- <el-input v-model.trim="searchForm.type"
:clearable="true"
:maxlength="50"
placeholder="请输入产品编码"
:style="{ width: '100%' }"
@input="event => searchInput(event, 'type')" /> -->
<el-input v-model.trim="searchForm.type"
:style="{ width: '100%' }"
placeholder="请输入产品编码"
:clearable="true"
:maxlength="50" />
</template>
<template #thirdPartyCode>
<el-input v-model.trim="searchForm.thirdPartyCode"
:clearable="true"
:maxlength="50"
placeholder="请输入供应商编码"
:style="{ width: '100%' }"
@input="event => searchInput(event, 'thirdPartyCode')" />
</template>
<template #baseGoodsCommodityCode>
<el-input v-model.trim="searchForm.baseGoodsCommodityCode"
:clearable="true"
:maxlength="50"
placeholder="请输入系列ID"
:style="{ width: '100%' }"
@input="event => searchInput(event, 'baseGoodsCommodityCode')" />
</template>
<template #goodsCascader>
<el-cascader v-model="tempGoodsType"
clearable
filterable
:options="baseData.productTypeList"
placeholder="请选择"
:props="{ checkStrictly: true, label: 'categoryName', value: 'categoryType' }"
style="width: 100%;"
@change="selectAddAttr($event)">
</el-cascader>
</template>
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId"
size="small"
type="primary">
查询
</el-button>
</div>
<d2-table ref="groundingIndexTable"
:before-search-fn="beforeSearchFn"
:get-list-api="getListApi"
:has-num="false"
:search-form="searchForm"
:table-params="tableParams"
@setTableFinishFun="setTableFinishFun">
<template #select_btn="scope">
<el-radio v-model="selectedRowId"
:disabled="packageSelectIds && packageSelectIds.includes(scope.scope.id)"
:label="scope.scope.id">
{{ '' }}
</el-radio>
</template>
<el-input v-model.trim="searchForm.type" :style="{ width: '100%' }" placeholder="请输入产品编码" :clearable="true"
:maxlength="50" />
</template>
<template #thirdPartyCode>
<el-input v-model.trim="searchForm.thirdPartyCode" :clearable="true" :maxlength="50" placeholder="请输入供应商编码"
:style="{ width: '100%' }" @input="event => searchInput(event, 'thirdPartyCode')" />
</template>
<template #baseGoodsCommodityCode>
<el-input v-model.trim="searchForm.baseGoodsCommodityCode" :clearable="true" :maxlength="50"
placeholder="请输入系列ID" :style="{ width: '100%' }"
@input="event => searchInput(event, 'baseGoodsCommodityCode')" />
</template>
<template #goodsCascader>
<el-cascader v-model="tempGoodsType" clearable filterable :options="baseData.productTypeList"
placeholder="请选择" :props="{ checkStrictly: true, label: 'categoryName', value: 'categoryType' }"
style="width: 100%;" @change="selectAddAttr($event)">
</el-cascader>
</template>
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
</el-button>
</div>
<d2-table ref="groundingIndexTable" :before-search-fn="beforeSearchFn" :get-list-api="getListApi" :has-num="false"
:search-form="searchForm" :table-params="tableParams" @setTableFinishFun="setTableFinishFun">
<template #select_btn="scope">
<el-radio v-model="selectedRowId" :disabled="packageSelectIds && packageSelectIds.includes(scope.scope.id)"
:label="scope.scope.id">
{{ '' }}
</el-radio>
</template>
<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 v-for="(item, index) in scope.scope.upgradeGoodsAreaList" :key="index">{{
item.provinceName == '全国' ? '全国' : `${item.provinceName}-${item.cityName}` }}</div>
item.provinceName == '全国' ? '全国' : `${item.provinceName}-${item.cityName}` }}</div>
</div>
<div>{{ scope.scope.upgradeGoodsAreaList | formatArea }}</div>
</el-tooltip>
<div v-else>-</div>
</template>
<template #carName="scope">
<el-tooltip v-if="scope.scope.carTypeConfigList && scope.scope.carTypeConfigList.length" placement="top">
<template #content>
<div class="car-type-list">
<div v-for="(item, index) in scope.scope.carTypeConfigList" :key="index">
{{ item.seriesName }}
</div>
</div>
</template>
<div>{{ scope.scope.carTypeConfigList | formatCar }}</div>
</el-tooltip>
<div v-else>
-
</div>
</template>
</d2-table>
</d2-dialog>
<template #carName="scope">
<el-tooltip v-if="scope.scope.carTypeConfigList && scope.scope.carTypeConfigList.length" placement="top">
<template #content>
<div class="car-type-list">
<div v-for="(item, index) in scope.scope.carTypeConfigList" :key="index">
{{ item.seriesName }}
</div>
</div>
</template>
<div>{{ scope.scope.carTypeConfigList | formatCar }}</div>
</el-tooltip>
<div v-else>
-
</div>
</template>
</d2-table>
</d2-dialog>
</template>
<script>
......@@ -162,6 +128,10 @@ export default {
merchantIdList: {
type: Array,
default: () => []
},
isShelves: {
type: Boolean,
default: false,
}
},
data() {
......@@ -222,9 +192,11 @@ export default {
specificationData: "",
type: "",
thirdPartyCode: "",
thirdPartyName: "",
carTypeSearch: "",
goodsName: "",
baseGoodsCommodityCode: "",
},
tempGoodsType: [],
baseData: {
......@@ -250,6 +222,13 @@ export default {
formatter: (cellValue) => {
return cellValue.upgradeGoodsName || "-";
},
},
{
label: "产品编码",
prop: "type",
formatter: (cellValue) => {
return cellValue.type || "-";
},
}, {
label: "产品ID",
prop: "commodityCode",
......@@ -264,19 +243,6 @@ export default {
return this.filterSpecsStr(cellValue);
},
}, {
label: "产品编码",
prop: "type",
formatter: (cellValue) => {
return cellValue.type || "-";
},
}, {
label: "供应商编码",
prop: "thirdPartyCode",
width: 100,
formatter: (cellValue) => {
return cellValue?.thirdPartyCode || "-";
},
}, {
label: "运营成本/元",
prop: "operationCost",
width: 150
......@@ -322,12 +288,51 @@ export default {
},
mounted() {
this.selectedRowId = this.upgradeGoodsId;
this.updateTableData()
// 获取全部类目 屏蔽服务商自建类目
getAllCategory({ categoryTypeList: this.selfBuildGoodsType, pageSize: 9999, currentPage: 1 }).then((res) => {
this.baseData.productTypeList = res?.list || [];
});
},
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) {
if (!/^[a-z0-9]*$/i.test(e)) {
this.searchForm[key] = e.replace(/[^a-z0-9]/gi, "");
......@@ -384,7 +389,9 @@ export default {
thirdPartyCode: "",
carTypeSearch: "",
goodsName: "",
thirdPartyName: '',
baseGoodsCommodityCode: "",
};
this.tempGoodsType = [];
// 重新查询
......
......@@ -30,8 +30,7 @@
v-if="(equitySceneType.includes(formData[item.key]) || extendedPosiType.includes(formData[item.key])) && !baseConfig.supplierCode.includes(`${formData.supplierCode}`)">
<div class="label">嘀加成本元/件:</div>
<div class="value">
<ellipsis-popover
:content="priceFilter(formData.upgradeGoods['djCost']) || ''"></ellipsis-popover>
<ellipsis-popover :content="priceFilter(formData.upgradeGoods['djCost']) || ''"></ellipsis-popover>
</div>
</div>
<!-- 商品分类 1太阳膜 -->
......@@ -58,8 +57,7 @@
<div class="item" v-if="membraneTypeList.includes(formData[item.key])">
<div class="label">质保年限/年:</div>
<div class="value">
<ellipsis-popover
:content="`${formData.upgradeGoods['warrantyPeriod']}年` || ''"></ellipsis-popover>
<ellipsis-popover :content="`${formData.upgradeGoods['warrantyPeriod']}年` || ''"></ellipsis-popover>
</div>
</div>
</div>
......@@ -104,10 +102,9 @@
<div v-else>
<el-form-item :prop="item.name"
: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"
style="margin-bottom: 0">
:id="item.name" :label-width="item.label ? '180px' : '0px'" class="dis-in-block" style="margin-bottom: 0">
<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>
</div>
......
......@@ -11,17 +11,16 @@
<div v-for="(item, index) in i.formBlock" :key="index">
<!-- 单选 -->
<!-- 太阳膜类商品 上架部位 -->
<div v-if="
item.type === 'radio' &&
<div v-if="item.type === 'radio' &&
formData['goodsType'] == 1 &&
!item.index
">
">
<el-form-item :prop="item.name" :label="item.label ? item.label + ':' : ''" :id="item.name"
:label-width="item.label ? '180px' : '0px'" class="dis-in-block"
:style="{ 'margin-bottom': !item.type ? '0px' : '22px' }">
<el-radio-group v-model="formData[item.name]">
<el-radio v-for="(subItem, subIndex) in item.radioGroupList" :key="subIndex"
:label="subItem.confId">{{ subItem.confName }}</el-radio>
<el-radio v-for="(subItem, subIndex) in item.radioGroupList" :key="subIndex" :label="subItem.confId">{{
subItem.confName }}</el-radio>
</el-radio-group>
</el-form-item>
</div>
......@@ -32,29 +31,28 @@
<div class="label">
{{
subItem.unit
? membraneTypeList.includes(formData[item.key])
? subItem.label +
`(元)/${subItem.value == "purchasePrice" ? "卷" : "卷"
}`
: subItem.label + "(元)/件"
: subItem.label
? membraneTypeList.includes(formData[item.key])
? subItem.label +
`(元)/${subItem.value == "purchasePrice" ? "卷" : "卷"
}`
: subItem.label + "(元)/件"
: subItem.label
}}:
</div>
<div class="value">
<ellipsis-popover :content="subItem.unit
? priceFilter(formData.upgradeGoods[subItem.value])
: formData.upgradeGoods[subItem.value] || ''
"></ellipsis-popover>
? priceFilter(formData.upgradeGoods[subItem.value])
: formData.upgradeGoods[subItem.value] || ''
"></ellipsis-popover>
</div>
</div>
<!-- 权益/延保非第三方展示 -->
<div class="item" v-if="
(equitySceneType.includes(formData[item.key]) ||
extendedPosiType.includes(formData[item.key])) &&
<div class="item" v-if="(equitySceneType.includes(formData[item.key]) ||
extendedPosiType.includes(formData[item.key])) &&
!baseConfig.supplierCode.includes(
`${formData.supplierCode}`
)
">
">
<div class="label">嘀加成本元/件:</div>
<div class="value">
<ellipsis-popover :content="priceFilter(formData.upgradeGoods['djCost']) || '-'
......@@ -69,12 +67,11 @@
</div>
</div>
<!-- 商品分类 权益类(供应方为非第三方) -->
<div class="item" v-if="
equitySceneType.includes(formData[item.key]) &&
<div class="item" v-if="equitySceneType.includes(formData[item.key]) &&
!baseConfig.supplierCode.includes(
`${formData.supplierCode}`
)
">
">
<div class="label">服务项目:</div>
<div class="value">
<ellipsis-popover :content="formData.upgradeGoods['serviceItemNames'] || ''"></ellipsis-popover>
......@@ -86,8 +83,8 @@
<div class="value">
{{
formData.upgradeGoods["entityCardFlag"] == "Y"
? "是"
: "否"
? "是"
: "否"
}}
</div>
</div>
......@@ -102,11 +99,10 @@
</div>
</div>
<!-- 下拉框/输入框 -->
<div v-if="
item.type === 'input' ||
<div v-if="item.type === 'input' ||
item.type === 'select' ||
item.type === 'searchSelect'
">
">
<el-form-item :prop="item.name" :label="item.label
? (item.unit
? membraneTypeList.includes(formData['goodsType'])
......@@ -128,8 +124,8 @@
</template>
<!-- 选择框 -->
<el-select v-else-if="item.type === 'select'" v-model="formData[item.name]" :clearable="item.isClear"
:ref="'selectRefs_' + item.name" :placeholder="'请选择' + item.label"
@change="selectAddAttr($event, item)" :style="{ width: item.width || formItemWidth }" filterable>
:ref="'selectRefs_' + item.name" :placeholder="'请选择' + item.label" @change="selectAddAttr($event, item)"
:style="{ width: item.width || formItemWidth }" filterable>
<el-option v-for="subItem in item.optionList" :key="subItem[item.optionId]"
:label="subItem[item.optionLabel]" :value="subItem[item.optionId]" />
</el-select>
......@@ -145,7 +141,7 @@
</el-option>
</el-select> -->
<el-button v-else-if="item.type === 'searchSelect'" icon="el-icon-plus"
@click="handleSelectGoods">选择商品</el-button>
@click="handleSelectGoods">选择产品</el-button>
</el-form-item>
</div>
<!-- 财务规则校验 -->
......@@ -195,8 +191,7 @@
:
</span>
<el-checkbox-group v-model="formData[item.name]">
<el-checkbox v-for="(subItem, subIndex) in item.checkGroupList" :key="subIndex"
:label="subItem.confId">
<el-checkbox v-for="(subItem, subIndex) in item.checkGroupList" :key="subIndex" :label="subItem.confId">
{{ subItem.confName }}
</el-checkbox>
</el-checkbox-group>
......@@ -328,7 +323,7 @@
:initial-index="initialIndex" />
<select-goods-dialog v-if="selectGoodsVisible" :select-goods-visible="selectGoodsVisible"
@handleSelectGoodsConfirm="handleSelectGoodsConfirm" @handleSelectGoodsClose="handleSelectGoodsClose"
:upgrade-goods-id="formData.upgradeGoodsId"></select-goods-dialog>
:upgrade-goods-id="formData.upgradeGoodsId" :is-shelves="true"></select-goods-dialog>
</div>
</template>
......@@ -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: [
// { required: true, message: "请输入最低售价", trigger: "blur" },
// {
......
......@@ -29,10 +29,10 @@ export default {
addOrEdit: 'add',
proFormRef: 'pro',
editForm: [{
title: '商品信息',
title: '产品信息',
formBlock: [{
name: 'upgradeGoodsId',
label: '上架商品',
label: '上架产品',
isRequired: true,
type: 'searchSelect',
optionList: [],
......@@ -86,9 +86,21 @@ export default {
}, {
label: '产品ID',
value: 'upgradeCommodityCode'
},
{
label: '供应商名称',
value: 'thirdPartyName'
}]
},
{
name: 'purchaseGoodsName',
label: '产品别名',
type: 'input',
width: '432px',
value: "purchaseGoodsName",
handleInput: true
},
{
name: 'purchasePrice',
label: '采购价',
type: 'input',
......@@ -159,7 +171,9 @@ export default {
voucherList: [],
// validMinSellPriceFlag: true,
// validMinSellPrice: 'Y',
suitCarType: 1
suitCarType: 1,
goodsAlias: '',
purchaseGoodsName: ''
},
secondGoodsList: [],
goodsNameKeyword: '',
......@@ -343,6 +357,7 @@ export default {
confirmEvent(params, num) {
const obj = { // 商品信息
position: '',
purchaseGoodsName: '',
goodsAlias: '',
warrantyType: '',
productType: [],
......
......@@ -44,10 +44,10 @@ export default {
financeCheckFlagStr: [{ required: true }]
},
editForm: [{
title: '商品信息',
title: '产品信息',
formBlock: [{
name: 'goodsName',
label: '上架商品',
label: '上架产品',
type: 'incidBox',
key: 'goodsType',
detailInfo: [{
......@@ -91,9 +91,19 @@ export default {
}, {
label: '产品ID',
value: 'upgradeCommodityCode'
},
{
label: '供应商名称',
value: 'thirdPartyName'
}]
},
{
name: 'purchaseGoodsName',
label: '产品别名',
width: '432px',
handleInput: true
},
{
name: 'purchasePrice',
label: '采购价',
type: 'input',
......
......@@ -117,11 +117,8 @@
:selected-scene="batchCopySelectScene" @handleBatchCopyConfirm="handleBatchCopyConfirm"
@handleBatchCopyClose="handleBatchCopyClose">
</batch-copy-dialog>
<d2-file-import-dialog :is-visible="fileVisible"
title="上传文件"
@closeDialog="handleBatchImport"
@confirmDialog="handleConfirmImport"
@downloadTemplate="exportTemplate" />
<d2-file-import-dialog :is-visible="fileVisible" title="上传文件" @closeDialog="handleBatchImport"
@confirmDialog="handleConfirmImport" @downloadTemplate="exportTemplate" />
</d2-container>
</template>
<script>
......@@ -158,7 +155,9 @@ export default {
status: '',
yqMerchantId: '',
goodsSource: 0,
financeCheckFlag: ''
financeCheckFlag: '',
thirdPartyName: '',
thirdPartyCode: ''
},
tempGoodsType: [],
getListApi: getGroundingManageList,
......@@ -250,6 +249,12 @@ export default {
isClear: true,
keyFn: this.keyDowmGetList
}, {
label: '供应商名称',
name: 'thirdPartyName',
type: 'input',
isClear: true,
keyFn: this.keyDowmGetList
}, {
label: '供应商编码',
name: 'thirdPartyCode',
type: 'input',
......@@ -326,13 +331,19 @@ export default {
// return cellValue.upgradeGoods.type || '-'
// }
}, {
label: '供应商名称',
prop: 'thirdPartyName',
width: 100,
formatter: (cellValue) => {
return cellValue?.thirdPartyName || '-'
}
}, {
label: '供应商编码',
prop: 'thirdPartyCode',
parentProp: 'upgradeGoods',
width: 100,
// formatter: (cellValue) => {
// return cellValue?.upgradeGoods?.thirdPartyCode || '-'
// }
formatter: (cellValue) => {
return cellValue?.thirdPartyCode || '-'
}
}, {
label: '上架商户',
name: '',
......
......@@ -307,7 +307,10 @@ export default {
if (index === -1) {
return;
}
this.$set(this.tabs.list, index, newRow);
this.$set(this.tabs.list, index, {
...newRow,
productName: getProductPackagesName(newRow.productType, newRow),
});
}
this.$refs.remoteSelectRef.forceUpdate();
......
<template>
<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="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;">
<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">
......@@ -33,12 +35,17 @@
</div>
<div class="footer">
<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>
</baseDialog>
<card-dialog v-if="cardVisible" :card-visible="cardVisible" :order-info="orderInfo" :selected-list="selectedCardList" @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>
<card-dialog v-if="cardVisible" :card-visible="cardVisible" :order-info="orderInfo" :selected-list="selectedCardList"
@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>
</template>
......@@ -131,6 +138,11 @@ export default {
prop: 'upgradeGoodsName'
},
{
label: "供应商名称",
prop: 'thirdPartyName',
width: 100,
},
{
label: '产品编码',
prop: 'type'
......@@ -140,11 +152,20 @@ export default {
prop: 'specificationData'
},
{
label: '供应商编码',
prop: 'thirdPartyCode',
width: 100
},
{
label: '适用车型',
addHtml: 'carName',
width: 200
},
{
label: "产品别名",
prop: "purchaseGoodsName",
},
{
label: '系列',
prop: 'goodsName'
},
......@@ -347,7 +368,7 @@ export default {
font-size: 14px;
color: #666666;
> span {
>span {
margin-right: 20px;
margin-bottom: 10px;
}
......
<!-- 审核 -->
<template>
<baseDialog :dialog-config="dialogConfig"
:is-show.sync="visible"
class="accountDailog"
@handleClick="handleAddConfirm">
<div class="reject-dialog">
<div class="edit-page edit-tmpl">
<div class="title">
产品信息
</div>
<div class="content-box">
<d2-table ref="purchaseOrderDetailTable"
:table-params="tableParams"
:table-data="detailInfo.tableData"
:layout="layout"
:table-total="detailInfo.tableTotal"
@refreshTable="refreshTable">
<template #upgradeGoodsName="scope">
<div>
<img v-if="scope.scope.refundStatus == 'Y'"
class="return"
src="@/assets/retrun.png"
alt="" />
<span>{{ scope.scope.upgradeGoodsName }}</span>
</div>
</template>
<template #filmRollNo="scope">
<div v-if="
scope.scope.filmRollList
&& scope.scope.filmRollList.length == 1
">
{{ scope.scope.filmRollList[0] }}
</div>
<div v-else-if="
scope.scope.filmRollList
&& scope.scope.filmRollList.length > 1
">
<el-popover placement="top"
width="200"
trigger="hover">
<div class="film-roll-box">
<div class="title">
膜卷号
</div>
<div v-for="(subItem, subIndex) in scope.scope.filmRollList"
:key="subIndex"
class="merchant-item">
{{ subItem }}
</div>
</div>
<template #reference>
<div>
<!-- <img style="width: 14px;height: 13px;" src="./images/merchant_icon.png"> -->
<span style="color: #2a58ad">
(…{{ scope.scope.filmRollList.length }})
</span>
</div>
</template>
</el-popover>
</div>
<div v-else>
<span style="
<baseDialog :dialog-config="dialogConfig" :is-show.sync="visible" class="accountDailog" @handleClick="handleAddConfirm">
<div class="reject-dialog">
<div class="edit-page edit-tmpl">
<div class="title">
产品信息
</div>
<div class="content-box">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :table-data="detailInfo.tableData"
:layout="layout" :table-total="detailInfo.tableTotal" @refreshTable="refreshTable">
<template #upgradeGoodsName="scope">
<div>
<img v-if="scope.scope.refundStatus == 'Y'" class="return" src="@/assets/retrun.png"
alt="" />
<span>{{ scope.scope.upgradeGoodsName }}</span>
</div>
</template>
<template #filmRollNo="scope">
<div v-if="scope.scope.filmRollList
&& scope.scope.filmRollList.length == 1
">
{{ scope.scope.filmRollList[0] }}
</div>
<div v-else-if="scope.scope.filmRollList
&& scope.scope.filmRollList.length > 1
">
<el-popover placement="top" width="200" trigger="hover">
<div class="film-roll-box">
<div class="title">
膜卷号
</div>
<div v-for="(subItem, subIndex) in scope.scope.filmRollList" :key="subIndex"
class="merchant-item">
{{ subItem }}
</div>
</div>
<template #reference>
<div>
<!-- <img style="width: 14px;height: 13px;" src="./images/merchant_icon.png"> -->
<span style="color: #2a58ad">
(…{{ scope.scope.filmRollList.length }})
</span>
</div>
</template>
</el-popover>
</div>
<div v-else>
<span style="
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
">
{{ "-" }}
</span>
</div>
</template>
<template #carName="scope">
<el-tooltip v-if="
scope.scope.suitCarTypeList
&& scope.scope.suitCarTypeList.length
"
placement="top">
<template #content>
<div class="car-type-list">
<div v-for="(item, index) in scope.scope.suitCarTypeList"
:key="index">
{{
`${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}`
}}
</div>
</div>
</template>
<div>{{ scope.scope.suitCarTypeList | formatCar }}</div>
</el-tooltip>
<div v-else>
-
</div>
</template>
<template #actionSlot="scope">
<el-button type="text"
@click="handleInventoryDetail(scope.scope)">
库存明细
</el-button>
</template>
</d2-table>
</div>
</div>
<glsx-combi-form ref="editFormRef"
class="edit-form-container"
label-width="150px"
default-width="350px"
:form-ref="editChildRef"
:form-obj="infoForm"
:form-data="editFormData"
:form-rules="formRules">
</glsx-combi-form>
<span :style="{ 'margin-left': '150px' }">{{ txtObj[fromPage] }}</span>
{{ "-" }}
</span>
</div>
</template>
<template #carName="scope">
<el-tooltip v-if="scope.scope.suitCarTypeList
&& scope.scope.suitCarTypeList.length
" placement="top">
<template #content>
<div class="car-type-list">
<div v-for="(item, index) in scope.scope.suitCarTypeList" :key="index">
{{
`${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}`
}}
</div>
</div>
</template>
<div>{{ scope.scope.suitCarTypeList | formatCar }}</div>
</el-tooltip>
<div v-else>
-
</div>
</template>
<template #actionSlot="scope">
<el-button type="text" @click="handleInventoryDetail(scope.scope)">
库存明细
</el-button>
</template>
</d2-table>
</div>
</div>
<glsx-combi-form ref="editFormRef" class="edit-form-container" label-width="150px" default-width="350px"
:form-ref="editChildRef" :form-obj="infoForm" :form-data="editFormData" :form-rules="formRules">
</glsx-combi-form>
<span :style="{ 'margin-left': '150px' }">{{ txtObj[fromPage] }}</span>
<ExamineRecord :list="originalAuditDetaiList" style="margin-top:20px;" />
</div>
<StockDetailDialog v-if="stockDetailDialogVisible"
:visible.sync="stockDetailDialogVisible"
:record-info="stockDetailInfo" />
</baseDialog>
<ExamineRecord :list="originalAuditDetaiList" style="margin-top:20px;" />
</div>
<StockDetailDialog v-if="stockDetailDialogVisible" :visible.sync="stockDetailDialogVisible"
:record-info="stockDetailInfo" />
</baseDialog>
</template>
<script>
......@@ -217,6 +192,11 @@ export default {
prop: "upgradeGoodsName",
},
{
label: "供应商名称",
prop: 'thirdPartyName',
width: 100,
},
{
label: "产品编码",
prop: "type",
},
......@@ -224,6 +204,12 @@ export default {
label: "规格",
prop: "specificationData",
},
{
label: '供应商编码',
prop: 'thirdPartyCode',
width: 100
},
{
label: "采购数量",
prop: "goodsNumber",
......@@ -245,10 +231,9 @@ export default {
const condition = baseConfig.membraneTypeList.includes(
cellValue.goodsType,
)
? `${
cellValue.conversionValue
? cellValue.goodsNumber * cellValue.conversionValue
: "-"
? `${cellValue.conversionValue
? cellValue.goodsNumber * cellValue.conversionValue
: "-"
}米`
: `${cellValue.goodsNumber}件`;
return this.paramsObj.purchaseType == 1
......@@ -257,6 +242,10 @@ export default {
},
},
{
label: "产品别名",
prop: "purchaseGoodsName",
},
{
label: "已发货数量",
prop: "purchaseNumber",
width: 110,
......@@ -348,7 +337,7 @@ export default {
hasAll
&& this.baseData[item.optionsName].length
&& this.baseData[item.optionsName][0][
this[formName][index].optionLabel
this[formName][index].optionLabel
] !== "全部"
) {
const temp = {};
......@@ -371,7 +360,7 @@ export default {
hasAll
&& this.baseData[item.optionsName].length
&& this.baseData[item.optionsName][0][
this[formName][index].optionLabel
this[formName][index].optionLabel
] !== "全部"
) {
const temp = {};
......@@ -470,6 +459,7 @@ export default {
color: #999999;
}
}
.edit-page.edit-tmpl {
background: #ffffff;
......@@ -483,10 +473,12 @@ export default {
color: #333333;
}
}
.content-box {
padding: 0 20px 20px;
background: #ffffff;
}
.car-type-list {
max-height: 300px;
overflow-y: scroll;
......@@ -498,6 +490,7 @@ export default {
margin-right: 2px;
vertical-align: middle;
}
.edit-form-container {
::v-deep .el-textarea {
width: 432px !important;
......
<template>
<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="addressTitle">
<img src="../images/addressIcon.webp" alt="" class="icon" />
......@@ -23,18 +24,19 @@
{{ detailInfo.purchaseOrderRemark }}</span></span>
</div> -->
<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 v-if="
(tableList[scope.index].purchaseNumber == 0 ||
tableList[scope.index].purchaseNumber !=
tableList[scope.index].goodsNumber) && scope.scope.refundStatus != 'Y'
">
<div v-if="(tableList[scope.index].purchaseNumber == 0 ||
tableList[scope.index].purchaseNumber !=
tableList[scope.index].goodsNumber) && scope.scope.refundStatus != 'Y'
">
<!-- 判断是否当前账户发货 -->
<el-input v-if="
(isEmptyEdit &&
!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>
<el-input v-if="(isEmptyEdit &&
!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>
<!-- <div v-if="detailInfo.tableData[scope.index].shipperUuid != userInfo.detail.uuid">{{ detailInfo.tableData[scope.index].shipper }}</div> -->
<div v-else>
已分配:{{ tableList[scope.index].shipper }}
......@@ -43,13 +45,14 @@
<div v-else>
{{
tableList[scope.index].shipperUuid
? "已分配:" + tableList[scope.index].shipper
: "--"
? "已分配:" + tableList[scope.index].shipper
: "--"
}}
</div>
</div>
<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 v-else-if="tableList[scope.index].purchaseNumber != tableList[scope.index].goodsNumber">
......@@ -83,10 +86,12 @@
<div class="form-content">
<el-form label-width="100px" :rules="dialogRules" :model="dialogData" ref="delivery-dialog-form">
<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 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 label="发货时间:" prop="deliveryDate">
<el-date-picker class="dis-in-block" v-model="dialogData.deliveryDate" type="datetime" placeholder="选择日期时间">
......@@ -108,11 +113,15 @@
:value="item.id"
/>
</el-select> -->
<el-select class="dis-in-block" v-model="dialogData.shippingWarehouseId" clearable placeholder="请选择发货仓库" @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">
<el-select class="dis-in-block" v-model="dialogData.shippingWarehouseId" clearable placeholder="请选择发货仓库"
@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">
<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
" class="add-option-input">{{ item.name }}</span>
<div>
......@@ -122,15 +131,18 @@
<i v-show="shippingWarehouseList.length > 1 &&
editOptionIndex == index
" 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>
</el-option>
<div class="add-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>
<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)" />
</div>
</div>
......@@ -152,11 +164,13 @@
<div class="footer">
<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>
</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>
</template>
......@@ -254,6 +268,11 @@ export default {
prop: 'upgradeGoodsName'
},
{
label: "供应商名称",
prop: 'thirdPartyName',
width: 100,
},
{
label: "产品编码",
prop: "type"
},
......@@ -261,6 +280,11 @@ export default {
label: "规格",
prop: "specificationData"
},
{
label: '供应商编码',
prop: 'thirdPartyCode',
width: 100
},
{
label: '适用车型',
......@@ -309,6 +333,10 @@ export default {
width: 150
},
{
label: "产品别名",
prop: "purchaseGoodsName",
},
{
label: "已发货数量",
prop: "purchaseNumber",
width: 120,
......@@ -661,7 +689,7 @@ export default {
font-size: 14px;
color: #666666;
> span {
>span {
margin-right: 20px;
margin-bottom: 10px;
}
......
<template>
<baseDialog :is-show.sync="dialogShow"
:config="dialogConfig.setting"
:dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose">
<div v-if="dialogShow" class="detail-content">
<div class="addressTitle">
<img src="../images/addressIcon.webp"
alt=""
class="icon" />
<span class="title">{{ paramsObj.merchantName }}</span>
</div>
<div class="address-info">
<span class="name">
收货人:<span class="label">
{{
detailInfo.contactName
}}
</span>
</span>
<span class="phone">
收货人电话:<span class="label">
{{
detailInfo.contactPhone
}}
</span>
</span>
<span class="address">
收货地址:<span class="label">
{{
detailInfo.contactAddress
}}
</span>
</span>
</div>
<div v-if="detailInfo.purchaseOrderRemark" class="address-info">
<span class="address">
备注:<span class="label">
{{
detailInfo.purchaseOrderRemark
}}
</span>
</span>
</div>
<div v-if="detailInfo.terminateDeliveryInstruction"
class="address-info">
<span class="address">
结束发货说明:<span class="label">
{{
detailInfo.terminateDeliveryInstruction
}}
</span>
</span>
</div>
<div class="table-class">
<d2-table ref="purchaseOrderDetailTable"
:table-params="tableParams"
:table-data="detailInfo.tableData"
:table-total="detailInfo.tableTotal"
@refreshTable="refreshTable">
<template #upgradeGoodsName="scope">
<div>
<img v-if="scope.scope.refundStatus == 'Y'"
class="return"
src="@/assets/retrun.png"
alt="" />
<span>{{ scope.scope.upgradeGoodsName }}</span>
</div>
</template>
<template #uploadFileUrls="scope">
<div v-if="scope.scope.uploadFileUrls">
<el-image fit="fill"
:preview-src-list="
scope.scope.uploadFileUrls.split(',')
"
:src="scope.scope.uploadFileUrls.split(',')[0]"
style="width: 36px; height: 36px">
</el-image>
</div>
<div v-else>
-
</div>
</template>
<template #filmRollNo="scope">
<div v-if="
scope.scope.filmRollList
&& scope.scope.filmRollList.length == 1
">
{{ scope.scope.filmRollList[0] }}
</div>
<div v-else-if="
scope.scope.filmRollList
&& scope.scope.filmRollList.length > 1
">
<el-popover placement="top"
width="200"
trigger="hover">
<div class="film-roll-box">
<div class="title">
膜卷号
</div>
<div v-for="(subItem, subIndex) in scope
.scope.filmRollList"
:key="subIndex"
class="merchant-item">
{{ subItem }}
</div>
</div>
<template #reference>
<div>
<!-- <img style="width: 14px;height: 13px;" src="./images/merchant_icon.png"> -->
<span style="color: #2a58ad">
(…{{
scope.scope.filmRollList.length
}})
</span>
</div>
</template>
</el-popover>
</div>
<div v-else>
<span style="
<baseDialog :is-show.sync="dialogShow" :config="dialogConfig.setting" :dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose">
<div v-if="dialogShow" class="detail-content">
<div class="addressTitle">
<img src="../images/addressIcon.webp" alt="" class="icon" />
<span class="title">{{ paramsObj.merchantName }}</span>
</div>
<div class="address-info">
<span class="name">
收货人:<span class="label">
{{
detailInfo.contactName
}}
</span>
</span>
<span class="phone">
收货人电话:<span class="label">
{{
detailInfo.contactPhone
}}
</span>
</span>
<span class="address">
收货地址:<span class="label">
{{
detailInfo.contactAddress
}}
</span>
</span>
</div>
<div v-if="detailInfo.purchaseOrderRemark" class="address-info">
<span class="address">
备注:<span class="label">
{{
detailInfo.purchaseOrderRemark
}}
</span>
</span>
</div>
<div v-if="detailInfo.terminateDeliveryInstruction" class="address-info">
<span class="address">
结束发货说明:<span class="label">
{{
detailInfo.terminateDeliveryInstruction
}}
</span>
</span>
</div>
<div class="table-class">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :table-data="detailInfo.tableData"
:table-total="detailInfo.tableTotal" @refreshTable="refreshTable">
<template #upgradeGoodsName="scope">
<div>
<img v-if="scope.scope.refundStatus == 'Y'" class="return" src="@/assets/retrun.png" alt="" />
<span>{{ scope.scope.upgradeGoodsName }}</span>
</div>
</template>
<template #uploadFileUrls="scope">
<div v-if="scope.scope.uploadFileUrls">
<el-image fit="fill" :preview-src-list="scope.scope.uploadFileUrls.split(',')
" :src="scope.scope.uploadFileUrls.split(',')[0]" style="width: 36px; height: 36px">
</el-image>
</div>
<div v-else>
-
</div>
</template>
<template #filmRollNo="scope">
<div v-if="scope.scope.filmRollList
&& scope.scope.filmRollList.length == 1
">
{{ scope.scope.filmRollList[0] }}
</div>
<div v-else-if="scope.scope.filmRollList
&& scope.scope.filmRollList.length > 1
">
<el-popover placement="top" width="200" trigger="hover">
<div class="film-roll-box">
<div class="title">
膜卷号
</div>
<div v-for="(subItem, subIndex) in scope
.scope.filmRollList" :key="subIndex" class="merchant-item">
{{ subItem }}
</div>
</div>
<template #reference>
<div>
<!-- <img style="width: 14px;height: 13px;" src="./images/merchant_icon.png"> -->
<span style="color: #2a58ad">
(…{{
scope.scope.filmRollList.length
}})
</span>
</div>
</template>
</el-popover>
</div>
<div v-else>
<span style="
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
">
{{ "-" }}
</span>
</div>
</template>
<template #carName="scope">
<el-tooltip v-if="
scope.scope.suitCarTypeList
&& scope.scope.suitCarTypeList.length
"
placement="top">
<template #content>
<div class="car-type-list">
<div v-for="(item, index) in scope.scope
.suitCarTypeList"
:key="index">
{{
`${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}`
}}
</div>
</div>
</template>
<div>
{{ scope.scope.suitCarTypeList | formatCar }}
</div>
</el-tooltip>
<div v-else>
-
</div>
</template>
</d2-table>
</div>
<ExamineRecord v-if="detailInfo.auditDetaiList && !paramsObj.factoryType"
:use-expand="false"
:list="detailInfo.auditDetaiList"
style="margin-top:20px;" />
{{ "-" }}
</span>
</div>
</template>
<template #carName="scope">
<el-tooltip v-if="scope.scope.suitCarTypeList
&& scope.scope.suitCarTypeList.length
" placement="top">
<template #content>
<div class="car-type-list">
<div v-for="(item, index) in scope.scope
.suitCarTypeList" :key="index">
{{
`${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}`
}}
</div>
</div>
</template>
<div>
{{ scope.scope.suitCarTypeList | formatCar }}
</div>
</el-tooltip>
<div v-else>
-
</div>
</template>
</d2-table>
</div>
<ExamineRecord v-if="detailInfo.auditDetaiList && !paramsObj.factoryType" :use-expand="false"
:list="detailInfo.auditDetaiList" style="margin-top:20px;" />
</div>
</baseDialog>
</div>
</baseDialog>
</template>
<script>
......@@ -224,6 +198,11 @@ export default {
prop: "upgradeGoodsName",
},
{
label: "供应商名称",
prop: 'thirdPartyName',
width: 100,
},
{
label: "产品编码",
prop: "type",
},
......@@ -232,11 +211,20 @@ export default {
prop: "specificationData",
},
{
label: '供应商编码',
prop: 'thirdPartyCode',
width: 100,
},
{
label: "适用车型",
addHtml: "carName",
width: 200,
},
{
label: "产品别名",
prop: "purchaseGoodsName",
},
{
label: "系列",
prop: "goodsName",
},
......@@ -268,11 +256,10 @@ export default {
= baseConfig.membraneTypeList.includes(
cellValue.goodsType,
)
? `${
cellValue.conversionValue
? cellValue.goodsNumber
* cellValue.conversionValue
: "-"
? `${cellValue.conversionValue
? cellValue.goodsNumber
* cellValue.conversionValue
: "-"
}米`
: `${cellValue.goodsNumber}件`;
return this.paramsObj.purchaseType == 1
......@@ -391,9 +378,9 @@ export default {
_auditDetaiList = _auditDetaiList.map((item) => {
item.reviewedDateFormat = item.reviewedDate
? Util.dateFormate(
item.reviewedDate,
"YYYY-MM-DD HH:mm:ss",
)
item.reviewedDate,
"YYYY-MM-DD HH:mm:ss",
)
: "";
return item;
});
......@@ -448,7 +435,7 @@ export default {
font-size: 14px;
color: #666666;
> span {
>span {
margin-right: 20px;
margin-bottom: 10px;
}
......
<!-- 驳回 -->
<template>
<baseDialog :dialog-config="dialogConfig"
:is-show.sync="visible"
class="accountDailog"
@handleClick="handleAddConfirm">
<div class="reject-dialog">
<div class="edit-page edit-tmpl">
<div class="title">
产品信息
</div>
<div class="content-box">
<d2-table ref="purchaseOrderDetailTable"
:table-params="tableParams"
:table-data="detailInfo.tableData"
:layout="layout"
:table-total="detailInfo.tableTotal"
@refreshTable="refreshTable">
<template #upgradeGoodsName="scope">
<div>
<img v-if="scope.scope.refundStatus == 'Y'"
class="return"
src="@/assets/retrun.png"
alt="" />
<span>{{ scope.scope.upgradeGoodsName }}</span>
</div>
</template>
<template #filmRollNo="scope">
<div v-if="
scope.scope.filmRollList
&& scope.scope.filmRollList.length == 1
">
{{ scope.scope.filmRollList[0] }}
</div>
<div v-else-if="
scope.scope.filmRollList
&& scope.scope.filmRollList.length > 1
">
<el-popover placement="top"
width="200"
trigger="hover">
<div class="film-roll-box">
<div class="title">
膜卷号
</div>
<div v-for="(subItem, subIndex) in scope.scope.filmRollList"
:key="subIndex"
class="merchant-item">
{{ subItem }}
</div>
</div>
<template #reference>
<div>
<span style="color: #2a58ad">
(…{{ scope.scope.filmRollList.length }})
</span>
</div>
</template>
</el-popover>
</div>
<div v-else>
<span style=" overflow: hidden;text-overflow: ellipsis; white-space: nowrap;">
{{ "-" }}
</span>
</div>
</template>
<template #carName="scope">
<el-tooltip v-if="
scope.scope.suitCarTypeList
&& scope.scope.suitCarTypeList.length
"
placement="top">
<template #content>
<div class="car-type-list">
<div v-for="(item, index) in scope.scope.suitCarTypeList"
:key="index">
{{
`${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}`
}}
</div>
</div>
</template>
<div>{{ scope.scope.suitCarTypeList | formatCar }}</div>
</el-tooltip>
<div v-else>
-
</div>
</template>
<template #actionSlot="scope">
<el-button type="text"
@click="handleInventoryDetail(scope.scope)">
库存明细
</el-button>
</template>
</d2-table>
</div>
</div>
<el-form ref="refundForm"
label-width="150px"
:model="infoForm"
:rules="formRules">
<el-form-item label="驳回节点:" prop="rejectNode">
<el-select v-model="infoForm.rejectNode"
placeholder="请选择驳回节点"
style="width: 450px">
<el-option v-for="item in baseData.rejectNodeOptions"
:key="item.id"
:label="item.label"
:value="item.id" />
</el-select>
</el-form-item>
<el-form-item label="驳回原因:" prop="rejectCause">
<el-input v-model="infoForm.rejectCause"
type="textarea"
:row="4"
show-word-limit
placeholder="请输入驳回原因"
maxlength="200"
class="reject-input" />
</el-form-item>
</el-form>
<ExamineRecord :list="originalAuditDetaiList" style="margin-top:20px;" />
<baseDialog :dialog-config="dialogConfig" :is-show.sync="visible" class="accountDailog" @handleClick="handleAddConfirm">
<div class="reject-dialog">
<div class="edit-page edit-tmpl">
<div class="title">
产品信息
</div>
<div class="content-box">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :table-data="detailInfo.tableData"
:layout="layout" :table-total="detailInfo.tableTotal" @refreshTable="refreshTable">
<template #upgradeGoodsName="scope">
<div>
<img v-if="scope.scope.refundStatus == 'Y'" class="return" src="@/assets/retrun.png"
alt="" />
<span>{{ scope.scope.upgradeGoodsName }}</span>
</div>
</template>
<template #filmRollNo="scope">
<div v-if="scope.scope.filmRollList
&& scope.scope.filmRollList.length == 1
">
{{ scope.scope.filmRollList[0] }}
</div>
<div v-else-if="scope.scope.filmRollList
&& scope.scope.filmRollList.length > 1
">
<el-popover placement="top" width="200" trigger="hover">
<div class="film-roll-box">
<div class="title">
膜卷号
</div>
<div v-for="(subItem, subIndex) in scope.scope.filmRollList" :key="subIndex"
class="merchant-item">
{{ subItem }}
</div>
</div>
<template #reference>
<div>
<span style="color: #2a58ad">
(…{{ scope.scope.filmRollList.length }})
</span>
</div>
</template>
</el-popover>
</div>
<div v-else>
<span style=" overflow: hidden;text-overflow: ellipsis; white-space: nowrap;">
{{ "-" }}
</span>
</div>
</template>
<template #carName="scope">
<el-tooltip v-if="scope.scope.suitCarTypeList
&& scope.scope.suitCarTypeList.length
" placement="top">
<template #content>
<div class="car-type-list">
<div v-for="(item, index) in scope.scope.suitCarTypeList" :key="index">
{{
`${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}`
}}
</div>
</div>
</template>
<div>{{ scope.scope.suitCarTypeList | formatCar }}</div>
</el-tooltip>
<div v-else>
-
</div>
</template>
<template #actionSlot="scope">
<el-button type="text" @click="handleInventoryDetail(scope.scope)">
库存明细
</el-button>
</template>
</d2-table>
</div>
</div>
<el-form ref="refundForm" label-width="150px" :model="infoForm" :rules="formRules">
<el-form-item label="驳回节点:" prop="rejectNode">
<el-select v-model="infoForm.rejectNode" placeholder="请选择驳回节点" style="width: 450px">
<el-option v-for="item in baseData.rejectNodeOptions" :key="item.id" :label="item.label"
:value="item.id" />
</el-select>
</el-form-item>
<el-form-item label="驳回原因:" prop="rejectCause">
<el-input v-model="infoForm.rejectCause" type="textarea" :row="4" show-word-limit placeholder="请输入驳回原因"
maxlength="200" class="reject-input" />
</el-form-item>
</el-form>
<ExamineRecord :list="originalAuditDetaiList" style="margin-top:20px;" />
</div>
<StockDetailDialog v-if="stockDetailDialogVisible"
:visible.sync="stockDetailDialogVisible"
:record-info="stockDetailInfo" />
</baseDialog>
</div>
<StockDetailDialog v-if="stockDetailDialogVisible" :visible.sync="stockDetailDialogVisible"
:record-info="stockDetailInfo" />
</baseDialog>
</template>
<script>
......@@ -216,6 +185,11 @@ export default {
prop: "upgradeGoodsName",
},
{
label: "供应商名称",
prop: 'thirdPartyName',
width: 100,
},
{
label: "产品编码",
prop: "type",
},
......@@ -224,6 +198,11 @@ export default {
prop: "specificationData",
},
{
label: '供应商编码',
prop: 'thirdPartyCode',
width: 100
},
{
label: "采购数量",
prop: "goodsNumber",
formatter: (cellValue) => {
......@@ -244,10 +223,9 @@ export default {
const condition = baseConfig.membraneTypeList.includes(
cellValue.goodsType,
)
? `${
cellValue.conversionValue
? cellValue.goodsNumber * cellValue.conversionValue
: "-"
? `${cellValue.conversionValue
? cellValue.goodsNumber * cellValue.conversionValue
: "-"
}米`
: `${cellValue.goodsNumber}件`;
return this.paramsObj.purchaseType == 1
......@@ -256,6 +234,10 @@ export default {
},
},
{
label: "产品别名",
prop: "purchaseGoodsName",
},
{
label: "已发货数量",
prop: "purchaseNumber",
width: 110,
......@@ -410,6 +392,7 @@ export default {
.tips {
color: #999999;
}
.edit-page.edit-tmpl {
background: #ffffff;
......@@ -423,10 +406,12 @@ export default {
color: #333333;
}
}
.content-box {
padding: 0 20px 20px;
background: #ffffff;
}
.car-type-list {
max-height: 300px;
overflow-y: scroll;
......
<!-- 仓库/工厂发货 -->
<template>
<d2-container class="container">
<template #header>
<div class="header">
<d2-search ref="showSearch"
class="show-search"
:form-data="showFormData"
:search-form="searchForm">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId"
handle
size="small"
type="primary">
查询
</el-button>
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
</div>
</template>
<div class="d2-container-content">
<d2-table-header>
<span style="margin-right: 10px">
<auth-button category="Button" :show-btn-ids="['9090703']" />
</span>
<span>
<auth-button category="Button" :show-btn-ids="['9090704']" />
</span>
</d2-table-header>
<d2-table ref="purchaseAndDeliveryTable"
:before-search-fn="beforeSearchFn"
:get-list-api="getListApi"
:search-form="tableSearchForm"
:table-params="tableParams"
@searchChange="searchChange"
@selectionTable="handleSelectionTable"
@setTableFinishFun="setTableFinishFun">
<template #upgradeGoodsName="scope">
<div>
<img v-if="scope.scope.refundStatus == 'Y'"
alt=""
class="return"
src="@/assets/retrun.png">
<span>{{ scope.scope.upgradeGoodsName }}</span>
</div>
</template>
<template #suitCarTypeList="scope">
<div>
<el-tooltip v-if="scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length"
effect="dark"
placement="top">
<template #content>
<div class="car-type-list">
<div>{{ scope.columnsObj.formatter(scope.scope) }}</div>
</div>
</template>
<span class="one-line-ellipsis">{{ scope.columnsObj.formatter(scope.scope) }}</span>
</el-tooltip>
<div v-else>
-
</div>
</div>
</template>
<template #auth-button="scope">
<div>
<!-- 查看 -->
<span v-if="scope.scope.deliveryStatus != 1" style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9090701']" />
</span>
<!-- 确认发货 -->
<!-- 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']" />
</span>
<!-- <el-button :data="scope.scope" type="text" @click="handleDelivery(scope.scope)">发货</el-button> -->
<!-- 发货 -->
<!-- <span v-show="scope.scope.status == 2" style="margin-right: 10px;"> -->
<!-- <span style="margin-right: 10px;">
<d2-container class="container">
<template #header>
<div class="header">
<d2-search ref="showSearch" :labelWidth="labelWidth" class="show-search" :form-data="showFormData"
:search-form="searchForm">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId" handle size="small" type="primary">
查询
</el-button>
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
</div>
</template>
<div class="d2-container-content">
<d2-table-header>
<span style="margin-right: 10px">
<auth-button category="Button" :show-btn-ids="['9090703']" />
</span>
<span>
<auth-button category="Button" :show-btn-ids="['9090704']" />
</span>
</d2-table-header>
<d2-table ref="purchaseAndDeliveryTable" :before-search-fn="beforeSearchFn" :get-list-api="getListApi"
:search-form="tableSearchForm" :table-params="tableParams" @searchChange="searchChange"
@selectionTable="handleSelectionTable" @setTableFinishFun="setTableFinishFun">
<template #upgradeGoodsName="scope">
<div>
<img v-if="scope.scope.refundStatus == 'Y'" alt="" class="return" src="@/assets/retrun.png">
<span>{{ scope.scope.upgradeGoodsName }}</span>
</div>
</template>
<template #suitCarTypeList="scope">
<div>
<el-tooltip v-if="scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length" effect="dark"
placement="top">
<template #content>
<div class="car-type-list">
<div>{{ scope.columnsObj.formatter(scope.scope) }}</div>
</div>
</template>
<span class="one-line-ellipsis">{{ scope.columnsObj.formatter(scope.scope) }}</span>
</el-tooltip>
<div v-else>
-
</div>
</div>
</template>
<template #auth-button="scope">
<div>
<!-- 查看 -->
<span v-if="scope.scope.deliveryStatus != 1" style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9090701']" />
</span>
<!-- 确认发货 -->
<!-- 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']" />
</span>
<!-- <el-button :data="scope.scope" type="text" @click="handleDelivery(scope.scope)">发货</el-button> -->
<!-- 发货 -->
<!-- <span v-show="scope.scope.status == 2" style="margin-right: 10px;"> -->
<!-- <span style="margin-right: 10px;">
<el-button :data="scope.scope" type="text" @click="hadleAllocat(scope.scope)">分配</el-button>
</span> -->
<!-- 驳回 -->
<!-- <span v-show="scope.scope.deliveryStatus == 1 && scope.scope.status != 4">
<!-- 驳回 -->
<!-- <span v-show="scope.scope.deliveryStatus == 1 && scope.scope.status != 4">
<auth-button :data="scope.scope" :show-btn-ids="['9090403']" />
</span> -->
</div>
</template>
</d2-table>
</div>
<FactoryDeliveryDetailDialog v-if="detailVisible"
:record-info="detailInfo"
:visible.sync="detailVisible">
</FactoryDeliveryDetailDialog>
<EditOrderDialog v-if="editVisible"
page="factory"
:params-obj="dialogData"
:table-list="editTableList"
:visible.sync="editVisible"
@editClose="editClose">
</EditOrderDialog>
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting" -->
<baseDialog :dialog-config="rejectConfig.config"
:is-show.sync="rejectVisible"
@handleClick="handleRejectConfirm">
<!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm"
</div>
</template>
</d2-table>
</div>
<FactoryDeliveryDetailDialog v-if="detailVisible" :record-info="detailInfo" :visible.sync="detailVisible">
</FactoryDeliveryDetailDialog>
<EditOrderDialog v-if="editVisible" page="factory" :params-obj="dialogData" :table-list="editTableList"
:visible.sync="editVisible" @editClose="editClose">
</EditOrderDialog>
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting" -->
<baseDialog :dialog-config="rejectConfig.config" :is-show.sync="rejectVisible" @handleClick="handleRejectConfirm">
<!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm"
@closeDialog="handleRejectClose"> -->
<div class="reject-dialog">
<el-form ref="delivery-dialog-form"
label-width="150px"
:model="rejectData"
:rules="rejectRules">
<el-form-item label="驳回原因:" prop="rejectCause">
<el-input v-model.trim="rejectData.rejectCause"
class="dis-in-block reject-input"
maxlength="50"
placeholder="请输入驳回原因"
:rows="3"
show-word-limit
type="textarea" />
</el-form-item>
</el-form>
</div>
<!-- <div class="footer">
<div class="reject-dialog">
<el-form ref="delivery-dialog-form" label-width="150px" :model="rejectData" :rules="rejectRules">
<el-form-item label="驳回原因:" prop="rejectCause">
<el-input v-model.trim="rejectData.rejectCause" class="dis-in-block reject-input" maxlength="50"
placeholder="请输入驳回原因" :rows="3" show-word-limit type="textarea" />
</el-form-item>
</el-form>
</div>
<!-- <div class="footer">
<el-button @click="handleRejectClose">取消</el-button>
<el-button @click="handleRejectConfirm" type="primary" v-preventReClick
:loading="$store.state.d2admin.loading.value">确认</el-button>
</div> -->
<!-- </d2-dialog> -->
</baseDialog>
</d2-container>
<!-- </d2-dialog> -->
</baseDialog>
</d2-container>
</template>
<script>
......@@ -149,6 +121,7 @@ export default {
},
data() {
return {
labelWidth: '100px',
editVisible: false,
editTableList: [],
reg: {
......@@ -251,6 +224,19 @@ export default {
type: "datePicker",
isClear: true,
},
{
label: '供应商名称',
name: 'thirdPartyName',
type: 'input',
isClear: true,
keyFn: this.keyDowmGetList
}, {
label: '供应商编码',
name: 'thirdPartyCode',
type: 'input',
isClear: true,
keyFn: this.keyDowmGetList
}
],
selectedList: [],
getListApi: warehousedeliverPage,
......@@ -268,6 +254,11 @@ export default {
prop: "upgradeGoodsName",
},
{
label: '供应商名称',
prop: 'thirdPartyName',
width: 100
},
{
label: "产品编码",
prop: "type",
},
......@@ -285,6 +276,11 @@ export default {
},
},
{
label: '供应商编码',
prop: 'thirdPartyCode',
width: 100
},
{
label: "系列",
prop: "goodsName",
},
......@@ -312,6 +308,10 @@ export default {
prop: "purchaseNumber",
},
{
label: "产品别名",
prop: "purchaseGoodsName",
},
{
label: "订单编号",
prop: "orderCode",
},
......@@ -483,10 +483,10 @@ export default {
) {
this.tableSearchForm.reviewedStartDateStr
= Util.dateFormate(this.tableSearchForm.reviewedDate[0], "YYYY-MM-DD")
+ " 00:00:00";
+ " 00:00:00";
this.tableSearchForm.reviewedEndDateStr
= Util.dateFormate(this.tableSearchForm.reviewedDate[1], "YYYY-MM-DD")
+ " 23:59:59";
+ " 23:59:59";
}
delete this.tableSearchForm.reviewedDate;
resolve();
......@@ -698,6 +698,7 @@ export default {
max-height: 320px;
overflow-y: scroll;
}
.return {
width: 15px;
height: 14px;
......
<!-- 采购发货 -->
<template>
<d2-container class="container">
<template #header>
<div class="header">
<d2-search ref="showSearch"
class="show-search"
:form-data="showFormData"
:search-form="searchForm">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId"
handle
size="small"
type="primary">
查询
</el-button>
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
</div>
</template>
<div class="d2-container-content">
<d2-table-header>
<d2-container class="container">
<template #header>
<div class="header">
<d2-search ref="showSearch" :labelWidth="labelWidth" class="show-search" :form-data="showFormData"
:search-form="searchForm">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId" handle size="small" type="primary">
查询
</el-button>
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
</div>
</template>
<div class="d2-container-content">
<d2-table-header>
<span style="margin-right: 10px">
<auth-button category="Button" :show-btn-ids="['9090407']" />
</span>
<span style="margin-right: 10px">
<auth-button category="Button" :show-btn-ids="['9090408']" />
</span>
<span>
<auth-button category="Button" :show-btn-ids="['9090405']" />
</span>
</d2-table-header>
<d2-table ref="purchaseAndDeliveryTable"
:before-search-fn="beforeSearchFn"
:get-list-api="getListApi"
:search-form="tableSearchForm"
:table-params="tableParams"
@current-change="handleCurrentChange"
@searchChange="searchChange"
@selectionTable="handleSelectionTable"
@setTableFinishFun="setTableFinishFun">
<template #uploadFileUrls="scope">
<div v-if="scope.scope.uploadFileUrls">
<el-image fit="fill"
:preview-src-list="scope.scope.uploadFileUrls.split(',')"
:src="scope.scope.uploadFileUrls.split(',')[0]"
style="width: 36px; height: 36px;">
</el-image>
</div>
<div v-else>
-
</div>
</template>
<template #upgradeGoodsName="scope">
<div>
<img v-if="scope.scope.refundStatus == 'Y'"
alt=""
class="return"
src="@/assets/retrun.png">
<span>{{ scope.scope.upgradeGoodsName }}</span>
</div>
</template>
<template #suitCarTypeList="scope">
<div>
<el-tooltip v-if="scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length"
effect="dark"
placement="top">
<template #content>
<div class="car-type-list">
<div>{{ scope.columnsObj.formatter(scope.scope) }}</div>
</div>
</template>
<span class="one-line-ellipsis">{{ scope.columnsObj.formatter(scope.scope) }}</span>
</el-tooltip>
<div v-else>
-
</div>
</div>
</template>
<template #remark="scope">
<div>
<el-tooltip v-if="scope.scope.purchaseOrderGoodsRemark"
:content="scope.scope.purchaseOrderGoodsRemark"
effect="dark"
placement="top">
<span class="one-line-ellipsis">{{ scope.scope.purchaseOrderGoodsRemark }}</span>
</el-tooltip>
<div v-else>
-
</div>
</div>
</template>
<template #auth-button="scope">
<div width="400">
<!-- 查看 -->
<span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9090401']" />
</span>
<!-- 确认发货 -->
<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']" />
</span>
<!-- 分配 -->
<span v-if="scope.scope.deliveryStatus == 1" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9090404']" />
</span>
<!-- 驳回 -->
<span v-if="scope.scope.purchaseOrderDeliveryStatus == 1" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9090403']" />
</span>
<!-- 结束 -->
<span v-if="scope.scope.purchaseOrderDeliveryStatus == 3" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9090406']" />
</span>
</div>
</template>
</d2-table>
</div>
<OrderDeatilDialog v-if="detailVisible"
:params-obj="paramsObj"
:visible.sync="detailVisible">
</OrderDeatilDialog>
<EditOrderDialog v-if="editVisible"
:is-empty-edit="true"
:params-obj="dialogData"
:table-list="editTableList"
:visible.sync="editVisible"
@editClose="editClose">
</EditOrderDialog>
<AllocateDialog v-if="allocateVisible"
:table-list="allocateTableList"
:visible.sync="allocateVisible"
@editClose="allocateClose">
</AllocateDialog>
<baseDialog :dialog-config="rejectConfig.config"
:is-show.sync="rejectVisible"
@handleClick="handleRejectConfirm">
<div class="reject-dialog" style="margin: 0;">
<div class="edit-page edit-tmpl">
<div class="title">
产品信息
</div>
<div class="content-box">
<d2-table ref="purchaseOrderDetailTable"
:layout="layout"
:table-data="detailInfo.tableData"
:table-params="rejectTableParams"
:table-total="detailInfo.tableTotal"
@refreshTable="rejectRefreshTable">
<template #upgradeGoodsName="scope">
<div>
<img v-if="scope.scope.refundStatus == 'Y'"
alt=""
class="return"
src="@/assets/retrun.png">
<span>{{ scope.scope.upgradeGoodsName }}</span>
</div>
</template>
<template #filmRollNo="scope">
<div v-if="scope.scope.filmRollList && scope.scope.filmRollList.length == 1">
{{ scope.scope.filmRollList[0] }}
</div>
<div v-else-if="scope.scope.filmRollList && scope.scope.filmRollList.length > 1">
<el-popover placement="top"
trigger="hover"
width="200">
<div class="film-roll-box">
<div class="title">
膜卷号
</div>
<div v-for="(subItem, subIndex) in scope.scope.filmRollList"
:key="subIndex"
class="merchant-item">
{{ subItem }}
</div>
</div>
<template #reference>
<div>
<span style="color: #2A58AD;">(…{{ scope.scope.filmRollList.length }})</span>
</div>
</template>
</el-popover>
</div>
<div v-else>
<span style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{ '-' }}</span>
</div>
</template>
<template #carName="scope">
<el-tooltip v-if="scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length" placement="top">
<template #content>
<div class="car-type-list">
<div v-for="(item, index) in scope.scope.suitCarTypeList" :key="index">
{{
`${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}` }}
</div>
</div>
</template>
<div>{{ scope.scope.suitCarTypeList | formatCar }}</div>
</el-tooltip>
<div v-else>
-
</div>
</template>
</d2-table>
</div>
</div>
<el-form ref="delivery-dialog-form"
label-width="150px"
:model="rejectData"
:rules="rejectRules">
<el-form-item label="驳回节点:" prop="rejectNode">
<el-select v-model="rejectData.rejectNode"
placeholder="请选择驳回节点"
style="width: 450px">
<el-option v-for="item in baseData.rejectNodeOptions"
:key="item.id"
:label="item.label"
:value="item.id" />
</el-select>
</el-form-item>
<el-form-item label="驳回原因:" prop="rejectCause">
<el-input v-model.trim="rejectData.rejectCause"
class="dis-in-block reject-input"
maxlength="200"
placeholder="请输入驳回原因"
:rows="4"
show-word-limit
type="textarea" />
</el-form-item>
</el-form>
<p style="margin-left: 150px; color: #999999;">
说明:驳回后,整个采购订单进行驳回,无法再重新进行发货操作。
</p>
<ExamineRecord :list="originalAuditDetaiList" style="margin-top:20px;" />
<span style="margin-right: 10px">
<auth-button category="Button" :show-btn-ids="['9090407']" />
</span>
<span style="margin-right: 10px">
<auth-button category="Button" :show-btn-ids="['9090408']" />
</span>
<span>
<auth-button category="Button" :show-btn-ids="['9090405']" />
</span>
</d2-table-header>
<d2-table ref="purchaseAndDeliveryTable" :before-search-fn="beforeSearchFn" :get-list-api="getListApi"
:search-form="tableSearchForm" :table-params="tableParams" @current-change="handleCurrentChange"
@searchChange="searchChange" @selectionTable="handleSelectionTable" @setTableFinishFun="setTableFinishFun">
<template #uploadFileUrls="scope">
<div v-if="scope.scope.uploadFileUrls">
<el-image fit="fill" :preview-src-list="scope.scope.uploadFileUrls.split(',')"
:src="scope.scope.uploadFileUrls.split(',')[0]" style="width: 36px; height: 36px;">
</el-image>
</div>
<div v-else>
-
</div>
</template>
<template #upgradeGoodsName="scope">
<div>
<img v-if="scope.scope.refundStatus == 'Y'" alt="" class="return" src="@/assets/retrun.png">
<span>{{ scope.scope.upgradeGoodsName }}</span>
</div>
</template>
<template #suitCarTypeList="scope">
<div>
<el-tooltip v-if="scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length" effect="dark"
placement="top">
<template #content>
<div class="car-type-list">
<div>{{ scope.columnsObj.formatter(scope.scope) }}</div>
</div>
</template>
<span class="one-line-ellipsis">{{ scope.columnsObj.formatter(scope.scope) }}</span>
</el-tooltip>
<div v-else>
-
</div>
</div>
</template>
<template #remark="scope">
<div>
<el-tooltip v-if="scope.scope.purchaseOrderGoodsRemark"
:content="scope.scope.purchaseOrderGoodsRemark" effect="dark" placement="top">
<span class="one-line-ellipsis">{{ scope.scope.purchaseOrderGoodsRemark }}</span>
</el-tooltip>
<div v-else>
-
</div>
</div>
</template>
<template #auth-button="scope">
<div width="400">
<!-- 查看 -->
<span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9090401']" />
</span>
<!-- 确认发货 -->
<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']" />
</span>
<!-- 分配 -->
<span v-if="scope.scope.deliveryStatus == 1" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9090404']" />
</span>
<!-- 驳回 -->
<span v-if="scope.scope.purchaseOrderDeliveryStatus == 1" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9090403']" />
</span>
<!-- 结束 -->
<span v-if="scope.scope.purchaseOrderDeliveryStatus == 3" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9090406']" />
</span>
</div>
</template>
</d2-table>
</div>
<OrderDeatilDialog v-if="detailVisible" :params-obj="paramsObj" :visible.sync="detailVisible" :is-delivery="true">
</OrderDeatilDialog>
<EditOrderDialog v-if="editVisible" :is-empty-edit="true" :params-obj="dialogData" :table-list="editTableList"
:visible.sync="editVisible" @editClose="editClose">
</EditOrderDialog>
<AllocateDialog v-if="allocateVisible" :table-list="allocateTableList" :visible.sync="allocateVisible"
@editClose="allocateClose">
</AllocateDialog>
<baseDialog :dialog-config="rejectConfig.config" :is-show.sync="rejectVisible" @handleClick="handleRejectConfirm">
<div class="reject-dialog" style="margin: 0;">
<div class="edit-page edit-tmpl">
<div class="title">
产品信息
</div>
<div class="content-box">
<d2-table ref="purchaseOrderDetailTable" :layout="layout" :table-data="detailInfo.tableData"
:table-params="rejectTableParams" :table-total="detailInfo.tableTotal"
@refreshTable="rejectRefreshTable">
<template #upgradeGoodsName="scope">
<div>
<img v-if="scope.scope.refundStatus == 'Y'" alt="" class="return"
src="@/assets/retrun.png">
<span>{{ scope.scope.upgradeGoodsName }}</span>
</div>
</template>
<template #filmRollNo="scope">
<div v-if="scope.scope.filmRollList && scope.scope.filmRollList.length == 1">
{{ scope.scope.filmRollList[0] }}
</div>
<div v-else-if="scope.scope.filmRollList && scope.scope.filmRollList.length > 1">
<el-popover placement="top" trigger="hover" width="200">
<div class="film-roll-box">
<div class="title">
膜卷号
</div>
<div v-for="(subItem, subIndex) in scope.scope.filmRollList" :key="subIndex"
class="merchant-item">
{{ subItem }}
</div>
</div>
<template #reference>
<div>
<span style="color: #2A58AD;">(…{{ scope.scope.filmRollList.length
}})</span>
</div>
</template>
</el-popover>
</div>
<div v-else>
<span style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{ '-'
}}</span>
</div>
</template>
<template #carName="scope">
<el-tooltip v-if="scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length"
placement="top">
<template #content>
<div class="car-type-list">
<div v-for="(item, index) in scope.scope.suitCarTypeList" :key="index">
{{
`${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}`
}}
</div>
</div>
</template>
<div>{{ scope.scope.suitCarTypeList | formatCar }}</div>
</el-tooltip>
<div v-else>
-
</div>
</template>
</d2-table>
</div>
</div>
<el-form ref="delivery-dialog-form" label-width="150px" :model="rejectData" :rules="rejectRules">
<el-form-item label="驳回节点:" prop="rejectNode">
<el-select v-model="rejectData.rejectNode" placeholder="请选择驳回节点" style="width: 450px">
<el-option v-for="item in baseData.rejectNodeOptions" :key="item.id" :label="item.label"
:value="item.id" />
</el-select>
</el-form-item>
<el-form-item label="驳回原因:" prop="rejectCause">
<el-input v-model.trim="rejectData.rejectCause" class="dis-in-block reject-input" maxlength="200"
placeholder="请输入驳回原因" :rows="4" show-word-limit type="textarea" />
</el-form-item>
</el-form>
<p style="margin-left: 150px; color: #999999;">
说明:驳回后,整个采购订单进行驳回,无法再重新进行发货操作。
</p>
<ExamineRecord :list="originalAuditDetaiList" style="margin-top:20px;" />
</div>
<!-- <div class="footer">
</div>
<!-- <div class="footer">
<el-button @click="handleRejectClose">取消</el-button>
<el-button @click="handleRejectConfirm" type="primary" v-preventReClick
:loading="$store.state.d2admin.loading.value">确认</el-button>
</div> -->
<!-- </d2-dialog> -->
</baseDialog>
<baseDialog :dialog-config="endConfig.config"
:is-show.sync="endVisible"
@handleClick="handleEndConfirm">
<!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm"
<!-- </d2-dialog> -->
</baseDialog>
<baseDialog :dialog-config="endConfig.config" :is-show.sync="endVisible" @handleClick="handleEndConfirm">
<!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm"
@closeDialog="handleRejectClose"> -->
<div class="reject-dialog end-dialog">
<el-form ref="end-dialog-form"
label-width="150px"
:model="terminateDelivery">
<el-form-item label="备注:" prop="rejectCause">
<el-input v-model.trim="terminateDelivery.terminateDeliveryInstruction"
class="dis-in-block reject-input"
maxlength="200"
placeholder="请输入备注信息"
:rows="3"
show-word-limit
type="textarea" />
</el-form-item>
</el-form>
<p style="margin-left: 150px; color: #999999;">
说明:结束发货后,整个采购订单发货完结,无法再重新进行发货操作。
</p>
</div>
<!-- <div class="footer">
<div class="reject-dialog end-dialog">
<el-form ref="end-dialog-form" label-width="150px" :model="terminateDelivery">
<el-form-item label="备注:" prop="rejectCause">
<el-input v-model.trim="terminateDelivery.terminateDeliveryInstruction"
class="dis-in-block reject-input" maxlength="200" placeholder="请输入备注信息" :rows="3"
show-word-limit type="textarea" />
</el-form-item>
</el-form>
<p style="margin-left: 150px; color: #999999;">
说明:结束发货后,整个采购订单发货完结,无法再重新进行发货操作。
</p>
</div>
<!-- <div class="footer">
<el-button @click="handleRejectClose">取消</el-button>
<el-button @click="handleRejectConfirm" type="primary" v-preventReClick
:loading="$store.state.d2admin.loading.value">确认</el-button>
</div> -->
<!-- </d2-dialog> -->
</baseDialog>
</d2-container>
<!-- </d2-dialog> -->
</baseDialog>
</d2-container>
</template>
<script>
......@@ -314,6 +263,7 @@ export default {
},
data() {
return {
labelWidth: '100px',
picOptions: {
width: "138px",
height: "54px",
......@@ -404,6 +354,11 @@ export default {
prop: "upgradeGoodsName",
},
{
label: "供应商名称",
prop: 'thirdPartyName',
width: 100,
},
{
label: "产品编码",
prop: "type",
},
......@@ -412,6 +367,14 @@ export default {
prop: "specificationData",
},
{
label: '供应商编码',
prop: 'thirdPartyCode',
width: 100,
formatter: (cellValue) => {
return cellValue?.upgradeGoods?.thirdPartyCode || '-'
}
},
{
label: "采购数量",
prop: "goodsNumber",
formatter: (cellValue) => {
......@@ -436,6 +399,10 @@ export default {
},
},
{
label: "产品别名",
prop: "purchaseGoodsName",
},
{
label: "单价",
prop: "upgradePurchasePrice",
formatter: (row) => {
......@@ -487,6 +454,8 @@ export default {
shipper: "",
deliveryDateStr: "",
signStatusList: [],
thirdPartyName: "",
thirdPartyCode: "",
},
tableSearchForm: {},
tableData: [],
......@@ -607,6 +576,19 @@ export default {
optionLabel: "confName",
optionsName: "signStatusType",
},
{
label: '供应商名称',
name: 'thirdPartyName',
type: 'input',
isClear: true,
keyFn: this.keyDowmGetList
}, {
label: '供应商编码',
name: 'thirdPartyCode',
type: 'input',
isClear: true,
keyFn: this.keyDowmGetList
}
],
selectedList: [],
getListApi: getPurchaseOrderShipmentList,
......@@ -624,6 +606,14 @@ export default {
prop: "upgradeGoodsName",
},
{
label: '供应商名称',
prop: 'thirdPartyName',
width: 100,
formatter: (cellValue) => {
return cellValue?.upgradeGoods?.thirdPartyName || '-'
}
},
{
label: "产品编码",
prop: "type",
},
......@@ -641,6 +631,14 @@ export default {
},
},
{
label: '供应商编码',
prop: 'thirdPartyCode',
width: 100,
formatter: (cellValue) => {
return cellValue?.upgradeGoods?.thirdPartyCode || '-'
}
},
{
label: "系列",
prop: "goodsName",
},
......@@ -684,6 +682,10 @@ export default {
},
},
{
label: "产品别名",
prop: "aliasName",
},
{
label: "订单编号",
prop: "orderCode",
},
......@@ -820,9 +822,9 @@ export default {
formatter: (cellValue) => {
return cellValue.reviewedDate
? Util.dateFormate(
cellValue.reviewedDate,
"YYYY-MM-DD HH:mm:ss",
)
cellValue.reviewedDate,
"YYYY-MM-DD HH:mm:ss",
)
: "--";
},
},
......@@ -1259,7 +1261,7 @@ export default {
id: this.terminateDelivery.id,
orderCode: this.terminateDelivery.orderCode,
terminateDeliveryInstruction:
this.terminateDelivery.terminateDeliveryInstruction,
this.terminateDelivery.terminateDeliveryInstruction,
}).then((res) => {
this.notice.okTips();
// this.handleEndClose()
......@@ -1315,6 +1317,7 @@ export default {
color: #999999;
}
}
.reject-dialog.end-dialog {
::v-deep .el-textarea .el-input__count {
right: 70px;
......@@ -1323,6 +1326,7 @@ export default {
color: #999999;
}
}
.edit-page.edit-tmpl {
background: #ffffff;
......@@ -1336,10 +1340,12 @@ export default {
color: #333333;
}
}
.car-type-list {
max-height: 320px;
overflow-y: scroll;
}
.return {
width: 15px;
height: 14px;
......@@ -1351,9 +1357,11 @@ export default {
display: flex;
justify-content: flex-end;
}
.uploadFileUrl-preview {
width: 138px;
height: 54px;
::v-deep .photo-activity {
width: 100%;
height: 100%;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!