|
@@ -278,13 +278,13 @@
|
|
<el-card class="box-card">
|
|
<el-card class="box-card">
|
|
<el-tabs v-model=" typeIndex " @tab-click=" changeType ">
|
|
<el-tabs v-model=" typeIndex " @tab-click=" changeType ">
|
|
<el-tab-pane label="发货数量" name="1"></el-tab-pane>
|
|
<el-tab-pane label="发货数量" name="1"></el-tab-pane>
|
|
- <el-tab-pane v-if="joinCode" label="发货条码" name="2"></el-tab-pane>
|
|
|
|
|
|
+ <el-tab-pane v-if="joinCode" label="退货条码" name="2"></el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
<br />
|
|
<br />
|
|
- <!-- <el-button size="small" v-show=" typeIndex == 2 && activeKey == 'REFUND_GOODS' " type="primary"
|
|
|
|
|
|
+ <el-button size="small" v-show=" typeIndex == 2 && activeKey == 'REFUND_GOODS' && joinCode" type="primary"
|
|
@click="addCode()">新增</el-button>
|
|
@click="addCode()">新增</el-button>
|
|
- <el-button size="small" v-show=" typeIndex == 1 && activeKey == 'REFUND_GOODS' " type="primary"
|
|
|
|
- @click="handleDownload('导入条码模板')">导入条码模板下载</el-button> -->
|
|
|
|
|
|
+ <el-button size="small" v-show=" typeIndex == 1 && activeKey == 'REFUND_GOODS' && joinCode" type="primary"
|
|
|
|
+ @click="handleDownload('导入条码模板')">导入条码模板下载</el-button>
|
|
<div class="table">
|
|
<div class="table">
|
|
<!-- 发货数量 -->
|
|
<!-- 发货数量 -->
|
|
<el-form v-show=" typeIndex == 1 " ref="formData1" :model=" formData1 " label-width="0" size="small"
|
|
<el-form v-show=" typeIndex == 1 " ref="formData1" :model=" formData1 " label-width="0" size="small"
|
|
@@ -311,14 +311,14 @@
|
|
width="140"></el-table-column>
|
|
width="140"></el-table-column>
|
|
<el-table-column prop="refundPartsCodeQty" align="center" label="导入配件条码数量"
|
|
<el-table-column prop="refundPartsCodeQty" align="center" label="导入配件条码数量"
|
|
width="140"></el-table-column>
|
|
width="140"></el-table-column>
|
|
- <!-- <el-table-column label="操作" align="center" width="140" fixed="right">
|
|
|
|
|
|
+ <el-table-column label="操作" align="center" width="140" fixed="right">
|
|
<template slot-scope="scope" v-if=" formType != 2 && joinCode && activeKey == 'REFUND_GOODS' ">
|
|
<template slot-scope="scope" v-if=" formType != 2 && joinCode && activeKey == 'REFUND_GOODS' ">
|
|
<el-upload action='_' :show-file-list=' false ' :http-request=" importCode ">
|
|
<el-upload action='_' :show-file-list=' false ' :http-request=" importCode ">
|
|
<el-button @click="orderDetailId = scope.row.orderDetailId" size="mini"
|
|
<el-button @click="orderDetailId = scope.row.orderDetailId" size="mini"
|
|
type="text">导入条码</el-button>
|
|
type="text">导入条码</el-button>
|
|
</el-upload>
|
|
</el-upload>
|
|
</template>
|
|
</template>
|
|
- </el-table-column> -->
|
|
|
|
|
|
+ </el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</el-form>
|
|
</el-form>
|
|
<!-- 发货条码 -->
|
|
<!-- 发货条码 -->
|
|
@@ -362,7 +362,7 @@
|
|
<el-form-item :prop=" 'list.' + scope.$index + '.specs' "
|
|
<el-form-item :prop=" 'list.' + scope.$index + '.specs' "
|
|
:rules=" [{ required: true, message: `请选择规格型号`, trigger: 'blur' }] ">
|
|
:rules=" [{ required: true, message: `请选择规格型号`, trigger: 'blur' }] ">
|
|
<el-select v-model=" scope.row.specs " @change=" (e) => { changeSpecs(e, scope.row) } "
|
|
<el-select v-model=" scope.row.specs " @change=" (e) => { changeSpecs(e, scope.row) } "
|
|
- value-key="goodsMaterialSpecsName"
|
|
|
|
|
|
+ value-key="orderDetailId"
|
|
:disabled=" isEdit2 != scope.$index || formType == 2 || activeKey == 'REFUND_GOODS_DETAIL' "
|
|
:disabled=" isEdit2 != scope.$index || formType == 2 || activeKey == 'REFUND_GOODS_DETAIL' "
|
|
placeholder="请选择" style="width: 100%;">
|
|
placeholder="请选择" style="width: 100%;">
|
|
<el-option v-for="( item, ind ) in formData1.list " :key=" ind "
|
|
<el-option v-for="( item, ind ) in formData1.list " :key=" ind "
|
|
@@ -589,7 +589,7 @@ export default {
|
|
getCodeDetail2(orderRefundId) {
|
|
getCodeDetail2(orderRefundId) {
|
|
getCodeDetail2({ orderId: orderRefundId || this.editOrderId || this?.order_cp?.orderRefundId || "" }).then(async res => {
|
|
getCodeDetail2({ orderId: orderRefundId || this.editOrderId || this?.order_cp?.orderRefundId || "" }).then(async res => {
|
|
for (var item of res.data) {
|
|
for (var item of res.data) {
|
|
- item.specs = { goodsMaterialSpecsName: item.specsName }
|
|
|
|
|
|
+ item.specs = { goodsMaterialSpecsName: item.specsName,orderDetailId: item.orderDetailId }
|
|
item.material = { name: item.materialName }
|
|
item.material = { name: item.materialName }
|
|
item.materialList = await this.getMaterialList(item.specsName, item.goodsMaterialItemType)
|
|
item.materialList = await this.getMaterialList(item.specsName, item.goodsMaterialItemType)
|
|
}
|
|
}
|
|
@@ -909,7 +909,7 @@ export default {
|
|
listImport2({ formdata })
|
|
listImport2({ formdata })
|
|
.then(res => {
|
|
.then(res => {
|
|
this.getOrderDetail()
|
|
this.getOrderDetail()
|
|
- this.getCodeDetail()
|
|
|
|
|
|
+ this.getCodeDetail2()
|
|
loading.close()
|
|
loading.close()
|
|
this.$message({
|
|
this.$message({
|
|
type: 'success',
|
|
type: 'success',
|