|
@@ -15,11 +15,11 @@
|
|
|
</el-button>
|
|
|
<el-button v-if="form.id && form.status == '待确认'" type="success" :loading="buttonLoading" size="small"
|
|
|
@click.native="generateTask">
|
|
|
- 生成退单任务
|
|
|
+ 生成退单任务
|
|
|
</el-button>
|
|
|
- <el-button v-if="form.generateTask=='已生成' && form.status == '待入库'" type="success" :loading="buttonLoading" size="small"
|
|
|
- @click.native="revokeGenerateTask">
|
|
|
- 撤销退单任务
|
|
|
+ <el-button v-if="form.generateTask == '已生成' && form.status == '待入库'" type="success" :loading="buttonLoading"
|
|
|
+ size="small" @click.native="revokeGenerateTask">
|
|
|
+ 撤销退单任务
|
|
|
</el-button>
|
|
|
<el-button v-if="form.id && form.status == '录入'" type="danger" :loading="buttonLoading" size="small"
|
|
|
@click.native="applySettlement('申请')">
|
|
@@ -78,9 +78,10 @@
|
|
|
@resetColumn="resetColumnTwo('formContacts', 'optionContacts', 'optionContactsBack', 343)"
|
|
|
@saveColumn="saveColumnTwo('formContacts', 'optionContacts', 'optionContactsBack', 343)">
|
|
|
<template slot-scope="{scope,row}" slot="menuLeft">
|
|
|
- <el-button type="primary" icon="el-icon-printer" size="small"
|
|
|
- @click="handlePrint">打印</el-button>
|
|
|
- <el-button type="danger" plain size="small" @click="batchDelete">一键删除</el-button>
|
|
|
+ <!-- <el-button type="primary" icon="el-icon-printer" size="small"
|
|
|
+ @click="handlePrint">打印</el-button> -->
|
|
|
+ <el-button type="danger" plain size="small" @click="batchDelete"
|
|
|
+ :disabled="form.checkStatus != '录入'||editButton">一键删除</el-button>
|
|
|
</template>
|
|
|
<template slot="goodsId" slot-scope="{ row }">
|
|
|
{{ row.goodsName }}
|
|
@@ -99,8 +100,8 @@
|
|
|
<el-button v-else :size="size" :disabled="disabled" :type="type"
|
|
|
:icon="row.$cellEdit ? 'el-icon-plus' : 'el-icon-edit'" @click="inSave(row, index)">保存
|
|
|
</el-button>
|
|
|
- <el-button icon="el-icon-delete" :size="size" :disabled="form.status != '录入'"
|
|
|
- :type="type" @click="rowDelBox(row, index, 'orderItemsList')">删除
|
|
|
+ <el-button icon="el-icon-delete" :size="size" :disabled="form.status != '录入'" :type="type"
|
|
|
+ @click="rowDelBox(row, index, 'orderItemsList')">删除
|
|
|
</el-button>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
@@ -111,7 +112,7 @@
|
|
|
@resetColumn="resetColumnTwo('outbound_records', 'optionOutboundRecords', 'optionOutboundRecordsBack', 345)"
|
|
|
@saveColumn="saveColumnTwo('outbound_records', 'optionOutboundRecords', 'optionOutboundRecordsBack', 345)">
|
|
|
</avue-crud>
|
|
|
-
|
|
|
+
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="历史记录" name="outbound_records">
|
|
|
<avue-crud :option="optionPaymentDetails" v-model="formContacts" ref="payment_details"
|
|
@@ -263,7 +264,7 @@ export default {
|
|
|
businesDate: '',
|
|
|
orderItemsList: [],
|
|
|
outboundRecordsList: [],
|
|
|
- orderRecordList:[]
|
|
|
+ orderRecordList: []
|
|
|
},
|
|
|
customerData: [], // 客户数据
|
|
|
optionForm: {
|
|
@@ -400,11 +401,28 @@ export default {
|
|
|
addRowBtn: false,
|
|
|
editBtn: false,
|
|
|
delBtn: false,
|
|
|
- menuWidth: 140,
|
|
|
+ menuWidth: 120,
|
|
|
dialogTop: 25,
|
|
|
dialogWidth: "80%",
|
|
|
showSummary: true,
|
|
|
selection: true,
|
|
|
+ summaryText: "合计",
|
|
|
+ sumColumnList: [{
|
|
|
+ name: 'inventory',
|
|
|
+ type: 'sum',
|
|
|
+ decimals: 0
|
|
|
+ }, {
|
|
|
+ name: 'goodsNum',
|
|
|
+ type: 'sum',
|
|
|
+ decimals: 0
|
|
|
+ }, {
|
|
|
+ name: 'returnsNumber',
|
|
|
+ type: 'sum',
|
|
|
+ decimals: 0
|
|
|
+ }, {
|
|
|
+ name: 'returnsAmount',
|
|
|
+ type: 'sum',
|
|
|
+ }],
|
|
|
column: [
|
|
|
// {
|
|
|
// label: '商品名称',
|
|
@@ -434,7 +452,7 @@ export default {
|
|
|
{
|
|
|
label: '商品名称',
|
|
|
prop: 'goodsName',
|
|
|
- width: 250,
|
|
|
+ width: 300,
|
|
|
disabled: false,
|
|
|
remote: true,
|
|
|
overHidden: true,
|
|
@@ -468,7 +486,7 @@ export default {
|
|
|
{
|
|
|
label: '库存',
|
|
|
prop: 'inventory',
|
|
|
- width: 250,
|
|
|
+ width: 100,
|
|
|
disabled: false,
|
|
|
remote: true,
|
|
|
overHidden: true,
|
|
@@ -532,7 +550,7 @@ export default {
|
|
|
}, {
|
|
|
label: '经手人',
|
|
|
prop: 'createUserName'
|
|
|
- }, {
|
|
|
+ }, {
|
|
|
label: '时间',
|
|
|
prop: 'createTime'
|
|
|
}]
|
|
@@ -731,7 +749,7 @@ export default {
|
|
|
this.isExamineBtn = !this.isExamineBtn
|
|
|
this.checkDialog = false;
|
|
|
},
|
|
|
- generateTask(){
|
|
|
+ generateTask() {
|
|
|
this.$confirm("您确定生成任务吗?", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
@@ -743,14 +761,14 @@ export default {
|
|
|
spinner: 'el-icon-loading',
|
|
|
background: 'rgba(255,255,255,0.7)'
|
|
|
});
|
|
|
- generateShipTask({id:this.form.id}).then((res) => {
|
|
|
+ generateShipTask({ id: this.form.id }).then((res) => {
|
|
|
loading.close()
|
|
|
this.$message.success('生成成功');
|
|
|
this.getDetail(this.form.id)
|
|
|
}).catch(() => { loading.close(); })
|
|
|
})
|
|
|
},
|
|
|
- revokeGenerateTask(){
|
|
|
+ revokeGenerateTask() {
|
|
|
this.$confirm("您确定撤销任务吗?", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
@@ -762,7 +780,7 @@ export default {
|
|
|
spinner: 'el-icon-loading',
|
|
|
background: 'rgba(255,255,255,0.7)'
|
|
|
});
|
|
|
- revokeGenerateShipTask({id:this.form.id}).then((res) => {
|
|
|
+ revokeGenerateShipTask({ id: this.form.id }).then((res) => {
|
|
|
loading.close()
|
|
|
this.$message.success('撤销成功');
|
|
|
this.getDetail(this.form.id)
|