Commit 6e4e04d9 by 陈婉清

Merge branch 'feature/586/cwq' into 'SAAS+V5.8.6'

Feature/586/cwq

See merge request !987
2 parents 00ff56e6 0761d186
Pipeline #263 for 6e4e04d9 failed in 0 seconds
......@@ -350,6 +350,11 @@ export default {
prop: "upgradeGoodsName",
},
{
label: "产品ID",
prop: "upgradeGoodsCommodityCode",
width: 100,
},
{
label: "供应商名称",
prop: "thirdPartyName",
width: 100,
......@@ -683,8 +688,9 @@ export default {
"goodsType",
"goodsTypeName",
];
if (this.page == "factory")
if (this.page == "factory") {
delete params.shippingWarehouseId;
}
for (let idx = 0; idx < this.tableList.length; idx++) {
const item = this.tableList[idx];
if (this.nowPurNumList[idx] && this.nowPurNumList[idx] != 0) {
......
<!-- 发货单详情弹窗 -->
<template>
<div>
<d2-dialog title="详细信息" :is-visible="detailVisible" class="stockMonthDailog" width="1400px" :no-cancel="true"
btn-ok-label="关闭" @closeDialog="handleClose" @confirmDialog="handleClose">
<d2-dialog btn-ok-label="关闭"
class="stockMonthDailog"
title="详细信息"
width="1400px"
:is-visible="detailVisible"
:no-cancel="true"
@closeDialog="handleClose"
@confirmDialog="handleClose">
<div class="detail-info">
<div>
发货单号:
......@@ -25,9 +31,13 @@
<div class="detail-info m-b-33" style="justify-content: flex-start; align-items: flex-start;">
签收凭证:
<div v-if="detailInfo.uploadFileUrl">
<el-image v-for="(url, index) in detailInfo.uploadFileUrl.split(',')" :key="index" :src="url"
<el-image v-for="(url, index) in detailInfo.uploadFileUrl.split(',')"
:key="index"
class="sign-image"
fit="cover"
style="width: 36px; height: 36px; margin-right: 8px; cursor: pointer;"
:preview-src-list="detailInfo.uploadFileUrl.split(',')"
style="width: 36px; height: 36px; margin-right: 8px; cursor: pointer;" class="sign-image" fit="cover" />
:src="url" />
</div>
<div v-else>
-
......@@ -41,9 +51,15 @@
<span>{{ item.upgradeGoodsName }}&nbsp;&nbsp;&nbsp;&nbsp; {{ item.specificationData }}</span>
</div>
<div>
产品ID:
<span>{{ item.upgradeCommodityCode }}</span>
</div>
<div>
发货数量:
<span>{{ item.purchaseNumber + (membraneTypeList.includes(item.goodsType) ? '卷' : '件') }}</span>
<el-button v-if="item.deliveryCardList && item.deliveryCardList.length > 0" type="text" class="lookNumber"
<el-button v-if="item.deliveryCardList && item.deliveryCardList.length > 0"
class="lookNumber"
type="text"
@click="lookNumber(item.deliveryCardList)">
查看卡号
</el-button>
......@@ -53,19 +69,26 @@
<span>{{ item.stockNum + (membraneTypeList.includes(item.goodsType) ? '米' : '件') }}</span>
</div>
</div>
<d2-table v-if="item.deliveryCardList === null || item.deliveryCardList.length == 0" ref="recordTable"
:table-data="item.goodsWarehousingList" :table-params="tableParams" :has-page="false">
<d2-table v-if="item.deliveryCardList === null || item.deliveryCardList.length == 0"
ref="recordTable"
:has-page="false"
:table-data="item.goodsWarehousingList"
:table-params="tableParams">
<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">
<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">
<div v-for="(subItem, subIndex) in scope.scope.filmRollList"
:key="subIndex"
class="merchant-item">
{{ subItem }}
</div>
</div>
......@@ -87,10 +110,18 @@
</div>
</template>
</d2-dialog>
<d2-dialog title="查看发货卡号" :is-visible="innerVisible" width="500px" :no-cancel="true" btn-ok-label="关闭"
@closeDialog="innerVisible = false" @confirmDialog="innerVisible = false">
<d2-table ref="recordTable" class="deliveryCardCon" :table-data="tableDataCardList" :table-params="innerParams"
:has-page="false">
<d2-dialog btn-ok-label="关闭"
title="查看发货卡号"
width="500px"
:is-visible="innerVisible"
:no-cancel="true"
@closeDialog="innerVisible = false"
@confirmDialog="innerVisible = false">
<d2-table ref="recordTable"
class="deliveryCardCon"
:has-page="false"
:table-data="tableDataCardList"
:table-params="innerParams">
</d2-table>
</d2-dialog>
</div>
......
......@@ -3,11 +3,17 @@
<d2-container class="container">
<template #header>
<div class="header">
<d2-search ref="showSearch" :labelWidth="labelWidth" class="show-search" :form-data="showFormData"
<d2-search ref="showSearch"
class="show-search"
:form-data="showFormData"
:label-width="labelWidth"
:search-form="searchForm">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId" handle size="small" type="primary">
<el-button :id="tableParams.btnId"
size="small"
type="primary"
handle>
查询
</el-button>
<el-button size="small" @click="handleReset">
......@@ -25,18 +31,27 @@
<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">
<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">
<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"
<el-tooltip v-if="scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length"
effect="dark"
placement="top">
<template #content>
<div class="car-type-list">
......@@ -58,8 +73,7 @@
</span>
<!-- 确认发货 -->
<!-- style="margin-right: 10px;" -->
<span
v-if="scope.scope.refundStatus != 'Y' && (scope.scope.deliveryStatus == 1 || scope.scope.deliveryStatus == 3)"
<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>
......@@ -77,20 +91,36 @@
</template>
</d2-table>
</div>
<FactoryDeliveryDetailDialog v-if="detailVisible" :record-info="detailInfo" :visible.sync="detailVisible">
<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 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">
<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 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-input v-model.trim="rejectData.rejectCause"
class="dis-in-block reject-input"
maxlength="50"
placeholder="请输入驳回原因"
type="textarea"
show-word-limit
:rows="3" />
</el-form-item>
</el-form>
</div>
......@@ -121,7 +151,7 @@ export default {
},
data() {
return {
labelWidth: '100px',
labelWidth: "100px",
editVisible: false,
editTableList: [],
reg: {
......@@ -154,6 +184,7 @@ export default {
merchantName: "",
deliveryStatus: "",
sendOutMerchantName: "",
commodityCode: "",
},
tableSearchForm: {},
tableData: [],
......@@ -225,18 +256,26 @@ export default {
isClear: true,
},
{
label: '供应商名称',
name: 'thirdPartyName',
type: 'input',
label: "供应商名称",
name: "thirdPartyName",
type: "input",
isClear: true,
keyFn: this.keyDowmGetList
}, {
label: '供应商编码',
name: 'thirdPartyCode',
type: 'input',
keyFn: this.keyDowmGetList,
},
{
label: "供应商编码",
name: "thirdPartyCode",
type: "input",
isClear: true,
keyFn: this.keyDowmGetList
}
keyFn: this.keyDowmGetList,
},
{
label: "产品ID",
name: "commodityCode",
type: "input",
isClear: true,
maxlength: 20,
},
],
selectedList: [],
getListApi: warehousedeliverPage,
......@@ -254,9 +293,14 @@ export default {
prop: "upgradeGoodsName",
},
{
label: '供应商名称',
prop: 'thirdPartyName',
width: 100
label: "产品ID",
prop: "upgradeGoodsCommodityCode",
width: 100,
},
{
label: "供应商名称",
prop: "thirdPartyName",
width: 100,
},
{
label: "产品编码",
......@@ -276,9 +320,9 @@ export default {
},
},
{
label: '供应商编码',
prop: 'thirdPartyCode',
width: 100
label: "供应商编码",
prop: "thirdPartyCode",
width: 100,
},
{
label: "系列",
......
......@@ -416,6 +416,11 @@ export default {
prop: "upgradeGoodsName",
},
{
label: "产品ID",
prop: "upgradeGoodsCommodityCode",
width: 100,
},
{
label: "供应商名称",
prop: "thirdPartyName",
width: 100,
......@@ -518,6 +523,7 @@ export default {
signStatusList: [],
thirdPartyName: "",
thirdPartyCode: "",
commodityCode: "",
},
tableSearchForm: {},
tableData: [],
......@@ -652,6 +658,13 @@ export default {
isClear: true,
keyFn: this.keyDowmGetList,
},
{
label: "产品ID",
name: "commodityCode",
type: "input",
isClear: true,
maxlength: 20,
},
],
selectedList: [],
getListApi: getPurchaseOrderShipmentList,
......@@ -669,6 +682,11 @@ export default {
prop: "upgradeGoodsName",
},
{
label: "产品ID",
prop: "upgradeGoodsCommodityCode",
width: 100,
},
{
label: "供应商名称",
prop: "thirdPartyName",
width: 100,
......
......@@ -128,6 +128,13 @@ export default {
optionLabel: "confValue",
optionsName: "inventoryTypeList",
},
{
label: "产品ID",
name: "commodityCode",
type: "input",
isClear: true,
maxlength: 20,
},
],
getListApi: getInventoryTransactionRecordsPage,
// 表格参数
......@@ -145,6 +152,11 @@ export default {
prop: "upgradeGoodsName",
},
{
label: "产品ID",
prop: "commodityCode",
width: 100,
},
{
label: "产品编码",
prop: "productCode",
},
......
......@@ -208,6 +208,12 @@ export default {
optionId: "confId",
optionLabel: "confValue",
optionsName: "inventoryTypeList",
}, {
label: "产品ID",
name: "commodityCode",
type: "input",
isClear: true,
maxlength: 20,
}],
getListApi: getMerchantGoodsStockReduceRecord,
tableParams: {
......@@ -226,6 +232,10 @@ export default {
prop: "upgradeGoodsName",
width: "160px",
}, {
label: "产品ID",
prop: "commodityCode",
width: 100,
}, {
label: "规格",
prop: "specificationData",
width: "160px",
......
......@@ -3,10 +3,16 @@
<d2-container class="container">
<template #header>
<div class="header">
<d2-search ref="showSearch" class="show-search" :form-data="showFormData" :search-form="searchForm">
<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 :id="tableParams.btnId"
size="small"
type="primary"
handle>
查询
</el-button>
<el-button size="small" @click="handleReset">
......@@ -25,12 +31,20 @@
<auth-button category="Button" :show-btn-ids="['9081102']" />
</span>
</d2-table-header>
<d2-table ref="transferShipmentTable" :before-search-fn="beforeSearchFn" :get-list-api="getListApi"
:search-form="tableSearchForm" :selectable-fn="selectableFn" :table-data="tableData"
:table-params="tableParams" @selectionTable="handleSelectionChange">
<d2-table ref="transferShipmentTable"
:before-search-fn="beforeSearchFn"
:get-list-api="getListApi"
:search-form="tableSearchForm"
:selectable-fn="selectableFn"
:table-data="tableData"
:table-params="tableParams"
@selectionTable="handleSelectionChange">
<template #receiver="scope">
<div v-if="scope.scope.receiver">
<el-popover v-if="scope.scope.receiver.length > 12" effect="dark" placement="top" trigger="hover"
<el-popover v-if="scope.scope.receiver.length > 12"
effect="dark"
placement="top"
trigger="hover"
width="300">
<div class="merchant-name-box">
{{ spanFilter(scope.scope.receiver) }}
......@@ -49,7 +63,10 @@
</template>
<template #address="scope">
<div v-if="scope.scope.address">
<el-popover v-if="scope.scope.address.length > 12" effect="dark" placement="top" trigger="hover"
<el-popover v-if="scope.scope.address.length > 12"
effect="dark"
placement="top"
trigger="hover"
width="300">
<div class="merchant-name-box">
{{ spanFilter(scope.scope.address) }}
......@@ -76,18 +93,26 @@
<auth-button :data="scope.scope" :show-btn-ids="['9081104']" />
</span>
<auth-button v-if="scope.scope.billStatus != 7 && scope.scope.deliveryStatus == 1"
:data="scope.scope" :show-btn-ids="['9081105']" />
:data="scope.scope"
:show-btn-ids="['9081105']" />
</div>
</template>
</d2-table>
</div>
<ShipmentDialog v-if="shipmentVisible" :params-obj="shipmentDialogData" :table-list="shipmentTableList"
:visible.sync="shipmentVisible" @shipmentClose="shipmentDialogClose">
<ShipmentDialog v-if="shipmentVisible"
:params-obj="shipmentDialogData"
:table-list="shipmentTableList"
:visible.sync="shipmentVisible"
@shipmentClose="shipmentDialogClose">
</ShipmentDialog>
<RejectDialog v-if="rejectVisible" :reject-data="rejectData" :visible.sync="rejectVisible"
<RejectDialog v-if="rejectVisible"
:reject-data="rejectData"
:visible.sync="rejectVisible"
@rejectClose="handleRejectClose">
</RejectDialog>
<TransferDetailDialog v-if="transferDetailVisible" :params-obj="transferObj" :visible.sync="transferDetailVisible">
<TransferDetailDialog v-if="transferDetailVisible"
:params-obj="transferObj"
:visible.sync="transferDetailVisible">
</TransferDetailDialog>
</d2-container>
</template>
......@@ -117,6 +142,7 @@ export default {
goodsName: "",
productCode: "",
callOutName: "",
commodityCode: "",
},
tableSearchForm: {},
tableData: [],
......@@ -166,13 +192,20 @@ export default {
type: "input",
isClear: true,
},
{
label: "产品ID",
name: "commodityCode",
type: "input",
isClear: true,
maxlength: 20,
},
],
getListApi: getTransferShipmentList,
// 表格参数
tableParams: {
btnId: new Date().getTime() + Number.parseInt(Math.random() * 1000),
listName: "list",
mutiSelectUniqueKey: "id",
mutiSelectUniqueKey: "detailId",
mutiSelectName: "list",
tableOption: {
width: "140",
......@@ -193,6 +226,11 @@ export default {
prop: "goodsName",
},
{
label: "产品ID",
prop: "commodityCode",
width: 100,
},
{
label: "产品编码",
prop: "productCode",
},
......@@ -422,8 +460,9 @@ export default {
},
shipmentDialogClose(obj) {
this.shipmentVisible = false;
if (obj)
if (obj) {
this.$refs.transferShipmentTable.refreshTable(true);
}
},
// 查看详情
handleDetail(row) {
......@@ -454,8 +493,9 @@ export default {
},
handleRejectClose(obj) {
this.rejectVisible = false;
if (obj)
if (obj) {
this.$refs.transferShipmentTable.refreshTable(true);
}
},
},
};
......
......@@ -12,9 +12,9 @@
:search-form="searchForm">
<template #filmRollNo>
<el-input v-model.trim="searchForm.filmRollNo"
placeholder="请输入膜卷号"
:clearable="true"
:maxlength="50"
placeholder="请输入膜卷号"
:style="{ width: '100%' }"
@input="filmRollNoInput" />
</template>
......@@ -179,6 +179,12 @@ export default {
}, {
label: "膜卷号",
addHtml: "filmRollNo",
}, {
label: "产品ID",
name: "commodityCode",
type: "input",
isClear: true,
maxlength: 20,
}],
getListApi: getGoodsWarehousingList,
tableParams: {
......@@ -197,6 +203,10 @@ export default {
prop: "upgradeGoodsName",
width: "160px",
}, {
label: "产品ID",
prop: "commodityCode",
width: 100,
}, {
label: "规格",
prop: "specificationData",
width: "160px",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!