|
@@ -41,9 +41,7 @@
|
|
|
>
|
|
>
|
|
|
{{ form.totalAmount }}元
|
|
{{ form.totalAmount }}元
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item
|
|
|
|
|
- label="计价方式:"
|
|
|
|
|
- style="margin-bottom: 22px">
|
|
|
|
|
|
|
+ <el-form-item label="计价方式:" style="margin-bottom: 22px">
|
|
|
{{ form.pricingWay == 1 ? '按数量计费' : '按重量计费' }}
|
|
{{ form.pricingWay == 1 ? '按数量计费' : '按重量计费' }}
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
<el-form-item
|
|
@@ -103,8 +101,7 @@
|
|
|
@click="downloadFile(link)"
|
|
@click="downloadFile(link)"
|
|
|
>
|
|
>
|
|
|
{{ link.name }}
|
|
{{ link.name }}
|
|
|
- </el-link
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ </el-link>
|
|
|
</div>
|
|
</div>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
<el-form-item
|
|
@@ -113,18 +110,24 @@
|
|
|
style="margin-bottom: 16px"
|
|
style="margin-bottom: 16px"
|
|
|
>
|
|
>
|
|
|
<fileUpload
|
|
<fileUpload
|
|
|
- v-if="taskDefinitionKey=='salesmanUploadReceipt'"
|
|
|
|
|
|
|
+ v-if="taskDefinitionKey == 'salesmanUploadReceipt'"
|
|
|
v-model="form.repliedFiles"
|
|
v-model="form.repliedFiles"
|
|
|
module="main"
|
|
module="main"
|
|
|
:showLib="false"
|
|
:showLib="false"
|
|
|
- :limit="10"/>
|
|
|
|
|
- <div v-else-if="detailData.repliedFiles && detailData.repliedFiles?.length">
|
|
|
|
|
|
|
+ :limit="10"
|
|
|
|
|
+ />
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-else-if="
|
|
|
|
|
+ detailData.repliedFiles && detailData.repliedFiles?.length
|
|
|
|
|
+ "
|
|
|
|
|
+ >
|
|
|
<el-link
|
|
<el-link
|
|
|
v-for="link in detailData.repliedFiles"
|
|
v-for="link in detailData.repliedFiles"
|
|
|
:key="link.id"
|
|
:key="link.id"
|
|
|
type="primary"
|
|
type="primary"
|
|
|
:underline="false"
|
|
:underline="false"
|
|
|
- @click="downloadFile(link)">
|
|
|
|
|
|
|
+ @click="downloadFile(link)"
|
|
|
|
|
+ >
|
|
|
{{ link.name }}
|
|
{{ link.name }}
|
|
|
</el-link>
|
|
</el-link>
|
|
|
</div>
|
|
</div>
|
|
@@ -173,21 +176,22 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import {getReturnSaleOrderrecordDetail} from '@/api/bpm/components/saleManage/saleorder';
|
|
|
|
|
-import {getFile} from '@/api/system/file';
|
|
|
|
|
-import dictMixins from '@/mixins/dictMixins';
|
|
|
|
|
-import {reviewStatusEnum} from '@/enum/dict';
|
|
|
|
|
-import inventoryTabledetail from './inventoryTabledetail.vue';
|
|
|
|
|
-import inventoryTable from './inventoryTable.vue';
|
|
|
|
|
-import add from "@/views/bpm/handleTask/components/purchaseOrder/outsourceSendReturnGoods/entrustedStorage.vue";
|
|
|
|
|
-import detailDialog from "@/views/bpm/handleTask/components/inoutBound/detailDialog.vue";
|
|
|
|
|
-import fileUpload from "@/components/upload/fileUpload.vue";
|
|
|
|
|
|
|
+ import { getReturnSaleOrderrecordDetail } from '@/api/bpm/components/saleManage/saleorder';
|
|
|
|
|
+ import { getFile } from '@/api/system/file';
|
|
|
|
|
+ import dictMixins from '@/mixins/dictMixins';
|
|
|
|
|
+ import { reviewStatusEnum } from '@/enum/dict';
|
|
|
|
|
+ import inventoryTabledetail from './inventoryTabledetail.vue';
|
|
|
|
|
+ import inventoryTable from './inventoryTable.vue';
|
|
|
|
|
+ import add from './salesReturnReceipt.vue';
|
|
|
|
|
+ import detailDialog from '@/views/bpm/handleTask/components/inoutBound/detailDialog.vue';
|
|
|
|
|
+ import fileUpload from '@/components/upload/fileUpload.vue';
|
|
|
|
|
|
|
|
-export default {
|
|
|
|
|
|
|
+ export default {
|
|
|
mixins: [dictMixins],
|
|
mixins: [dictMixins],
|
|
|
components: {
|
|
components: {
|
|
|
fileUpload,
|
|
fileUpload,
|
|
|
- detailDialog, add,
|
|
|
|
|
|
|
+ detailDialog,
|
|
|
|
|
+ add,
|
|
|
inventoryTabledetail,
|
|
inventoryTabledetail,
|
|
|
inventoryTable
|
|
inventoryTable
|
|
|
},
|
|
},
|
|
@@ -196,7 +200,7 @@ export default {
|
|
|
codeData: [],
|
|
codeData: [],
|
|
|
tabOptions: [{ key: 'main', name: '退货单详情' }],
|
|
tabOptions: [{ key: 'main', name: '退货单详情' }],
|
|
|
reviewStatusEnum,
|
|
reviewStatusEnum,
|
|
|
- activeComp:'main',
|
|
|
|
|
|
|
+ activeComp: 'main',
|
|
|
visible: false,
|
|
visible: false,
|
|
|
detailId: '',
|
|
detailId: '',
|
|
|
title: '详情',
|
|
title: '详情',
|
|
@@ -282,14 +286,14 @@ export default {
|
|
|
prop: 'singleWeight',
|
|
prop: 'singleWeight',
|
|
|
label: '单重',
|
|
label: '单重',
|
|
|
slot: 'singleWeight',
|
|
slot: 'singleWeight',
|
|
|
- align: "center"
|
|
|
|
|
|
|
+ align: 'center'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
width: 200,
|
|
width: 200,
|
|
|
prop: 'receiveTotalWeight',
|
|
prop: 'receiveTotalWeight',
|
|
|
label: '收货总重',
|
|
label: '收货总重',
|
|
|
slot: 'receiveTotalWeight',
|
|
slot: 'receiveTotalWeight',
|
|
|
- align: "center",
|
|
|
|
|
|
|
+ align: 'center',
|
|
|
headerSlot: 'headerSendTotalWeight'
|
|
headerSlot: 'headerSendTotalWeight'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -297,14 +301,14 @@ export default {
|
|
|
prop: 'sendTotalWeight',
|
|
prop: 'sendTotalWeight',
|
|
|
label: '发货总重',
|
|
label: '发货总重',
|
|
|
slot: 'sendTotalWeight',
|
|
slot: 'sendTotalWeight',
|
|
|
- align: "center"
|
|
|
|
|
|
|
+ align: 'center'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
width: 100,
|
|
width: 100,
|
|
|
prop: 'increaseTotalWeight',
|
|
prop: 'increaseTotalWeight',
|
|
|
label: '增重重量',
|
|
label: '增重重量',
|
|
|
slot: 'increaseTotalWeight',
|
|
slot: 'increaseTotalWeight',
|
|
|
- align: "center"
|
|
|
|
|
|
|
+ align: 'center'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
width: 160,
|
|
width: 160,
|
|
@@ -394,7 +398,10 @@ export default {
|
|
|
changeActive(item) {
|
|
changeActive(item) {
|
|
|
this.activeComp = item.key;
|
|
this.activeComp = item.key;
|
|
|
this.$emit('activeCompChange', item.key);
|
|
this.$emit('activeCompChange', item.key);
|
|
|
- if (this.taskDefinitionKey == 'storemanApprove' && item.key == 'inoutBound') {
|
|
|
|
|
|
|
+ if (
|
|
|
|
|
+ this.taskDefinitionKey == 'storemanApprove' &&
|
|
|
|
|
+ item.key == 'inoutBound'
|
|
|
|
|
+ ) {
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.$refs.add.pickerSuccess(this.form);
|
|
this.$refs.add.pickerSuccess(this.form);
|
|
|
});
|
|
});
|
|
@@ -410,10 +417,11 @@ export default {
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
this.form.repliedFiles = this.form.repliedFiles || [];
|
|
this.form.repliedFiles = this.form.repliedFiles || [];
|
|
|
this.form.replied = this.form.repliedFiles.length > 0 ? 1 : 0;
|
|
this.form.replied = this.form.repliedFiles.length > 0 ? 1 : 0;
|
|
|
- return Object.assign({}, this.form,)
|
|
|
|
|
|
|
+ this.form.returnStorageData = await this.$refs.add.getReturnStorage();
|
|
|
|
|
+ return Object.assign({}, this.form);
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
console.log(error);
|
|
console.log(error);
|
|
|
- return ''
|
|
|
|
|
|
|
+ return '';
|
|
|
// 表单验证未通过,不执行保存操作
|
|
// 表单验证未通过,不执行保存操作
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|