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
...@@ -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,17 +11,16 @@ ...@@ -11,17 +11,16 @@
<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
"> ">
<el-form-item :prop="item.name" :label="item.label ? item.label + ':' : ''" :id="item.name" <el-form-item :prop="item.name" :label="item.label ? item.label + ':' : ''" :id="item.name"
: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>
...@@ -32,29 +31,28 @@ ...@@ -32,29 +31,28 @@
<div class="label"> <div class="label">
{{ {{
subItem.unit subItem.unit
? membraneTypeList.includes(formData[item.key]) ? membraneTypeList.includes(formData[item.key])
? subItem.label + ? subItem.label +
`(元)/${subItem.value == "purchasePrice" ? "卷" : "卷" `(元)/${subItem.value == "purchasePrice" ? "卷" : "卷"
}` }`
: subItem.label + "(元)/件" : subItem.label + "(元)/件"
: subItem.label : subItem.label
}}: }}:
</div> </div>
<div class="value"> <div class="value">
<ellipsis-popover :content="subItem.unit <ellipsis-popover :content="subItem.unit
? priceFilter(formData.upgradeGoods[subItem.value]) ? priceFilter(formData.upgradeGoods[subItem.value])
: formData.upgradeGoods[subItem.value] || '' : formData.upgradeGoods[subItem.value] || ''
"></ellipsis-popover> "></ellipsis-popover>
</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}`
) )
"> ">
<div class="label">嘀加成本元/件:</div> <div class="label">嘀加成本元/件:</div>
<div class="value"> <div class="value">
<ellipsis-popover :content="priceFilter(formData.upgradeGoods['djCost']) || '-' <ellipsis-popover :content="priceFilter(formData.upgradeGoods['djCost']) || '-'
...@@ -69,12 +67,11 @@ ...@@ -69,12 +67,11 @@
</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}`
) )
"> ">
<div class="label">服务项目:</div> <div class="label">服务项目:</div>
<div class="value"> <div class="value">
<ellipsis-popover :content="formData.upgradeGoods['serviceItemNames'] || ''"></ellipsis-popover> <ellipsis-popover :content="formData.upgradeGoods['serviceItemNames'] || ''"></ellipsis-popover>
...@@ -86,8 +83,8 @@ ...@@ -86,8 +83,8 @@
<div class="value"> <div class="value">
{{ {{
formData.upgradeGoods["entityCardFlag"] == "Y" formData.upgradeGoods["entityCardFlag"] == "Y"
? "是" ? "是"
: "否" : "否"
}} }}
</div> </div>
</div> </div>
...@@ -102,11 +99,10 @@ ...@@ -102,11 +99,10 @@
</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'
"> ">
<el-form-item :prop="item.name" :label="item.label <el-form-item :prop="item.name" :label="item.label
? (item.unit ? (item.unit
? membraneTypeList.includes(formData['goodsType']) ? membraneTypeList.includes(formData['goodsType'])
...@@ -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>
<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 }}
...@@ -43,13 +45,14 @@ ...@@ -43,13 +45,14 @@
<div v-else> <div v-else>
{{ {{
tableList[scope.index].shipperUuid tableList[scope.index].shipperUuid
? "已分配:" + tableList[scope.index].shipper ? "已分配:" + tableList[scope.index].shipper
: "--" : "--"
}} }}
</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;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!