|
|
@@ -54,12 +54,12 @@
|
|
|
撤销订单确认
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
- v-if="form.status == '已发货'"
|
|
|
+ v-if="form.status == '已发货' || form.status == '已收货'"
|
|
|
class="el-button--small-yh"
|
|
|
style="margin-left: 6px"
|
|
|
type="info"
|
|
|
size="small"
|
|
|
- :disabled="form.status != '已发货' || form.returnsNumber == form.goodsTotalNum || editButton"
|
|
|
+ :disabled="editButton"
|
|
|
@click="getReturns"
|
|
|
>
|
|
|
销售退货
|
|
|
@@ -240,9 +240,7 @@
|
|
|
v-model="row.goodsNum"
|
|
|
:precision="numberDecimal"
|
|
|
:controls="false"
|
|
|
- @change="goodsNumblurfun(row)"
|
|
|
:min="1"
|
|
|
- :max="Number(row.inventory)"
|
|
|
style="width: 100%"
|
|
|
></el-input-number>
|
|
|
<span v-else>{{ row.goodsNum }}</span>
|
|
|
@@ -465,7 +463,6 @@
|
|
|
:min="1"
|
|
|
:controls="false"
|
|
|
:precision="numberDecimal"
|
|
|
- @input="amountChange($event, row)"
|
|
|
style="width: 100%"
|
|
|
/>
|
|
|
</template>
|
|
|
@@ -924,7 +921,6 @@ export default {
|
|
|
orderItemsList: [],
|
|
|
paymentRecordsList: [],
|
|
|
outboundRecordsList: [],
|
|
|
- freight: 5,
|
|
|
},
|
|
|
excelOption: {
|
|
|
submitBtn: false,
|
|
|
@@ -1115,22 +1111,11 @@ export default {
|
|
|
disabled: true,
|
|
|
},
|
|
|
{
|
|
|
- label: "运费",
|
|
|
- prop: "freight",
|
|
|
- disabled: true,
|
|
|
- },
|
|
|
- {
|
|
|
label: "总金额",
|
|
|
prop: "totalMoney",
|
|
|
disabled: true,
|
|
|
},
|
|
|
{
|
|
|
- label: "余额抵扣",
|
|
|
- prop: "paymentRecoveredBalance",
|
|
|
- overHidden: true,
|
|
|
- disabled: true,
|
|
|
- },
|
|
|
- {
|
|
|
label: "已收金额",
|
|
|
prop: "paymentAmountTl",
|
|
|
disabled: true,
|
|
|
@@ -1168,8 +1153,8 @@ export default {
|
|
|
prop: "remarks",
|
|
|
type: "textarea",
|
|
|
disabled: false,
|
|
|
- span: 16,
|
|
|
- minRows: 1,
|
|
|
+ span: 12,
|
|
|
+ minRows: 2,
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
@@ -1600,7 +1585,7 @@ export default {
|
|
|
},
|
|
|
};
|
|
|
},
|
|
|
- components: { SearchQuery, dicSelect,reportDialog},
|
|
|
+ components: { SearchQuery, dicSelect, reportDialog },
|
|
|
props: {
|
|
|
onLoad: Object,
|
|
|
detailData: Object,
|
|
|
@@ -1753,10 +1738,6 @@ export default {
|
|
|
this.isSaveBtn = false;
|
|
|
this.viewDisabled = false;
|
|
|
this.form.businessSource = "内部销售";
|
|
|
- isProcurement({ param: "freight" }).then((res) => {
|
|
|
- // res.data.data === '1'
|
|
|
- this.form.freight = res.data.data;
|
|
|
- });
|
|
|
}
|
|
|
if (this.detailData.check) {
|
|
|
this.isExamineBtn = false;
|
|
|
@@ -1948,19 +1929,20 @@ export default {
|
|
|
},
|
|
|
//生成退货单
|
|
|
getReturns() {
|
|
|
- this.$confirm("您确定要退货吗?", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
- }).then(() => {
|
|
|
- this.$router.push({
|
|
|
- path: "/salesService/returns/index",
|
|
|
- query: {
|
|
|
- bsType: "TKXS",
|
|
|
- id: this.form.id,
|
|
|
- },
|
|
|
- });
|
|
|
- });
|
|
|
+ this.$message.error("开发中");
|
|
|
+ // this.$confirm("您确定要退货吗?", {
|
|
|
+ // confirmButtonText: "确定",
|
|
|
+ // cancelButtonText: "取消",
|
|
|
+ // type: "warning",
|
|
|
+ // }).then(() => {
|
|
|
+ // this.$router.push({
|
|
|
+ // path: "/salesService/returns/index",
|
|
|
+ // query: {
|
|
|
+ // bsType: "TKXS",
|
|
|
+ // id: this.form.id,
|
|
|
+ // },
|
|
|
+ // });
|
|
|
+ // });
|
|
|
},
|
|
|
// 店铺名称监听
|
|
|
KHcorpChange(value) {
|
|
|
@@ -2069,7 +2051,7 @@ export default {
|
|
|
done();
|
|
|
},
|
|
|
resetChange() {
|
|
|
- this.treeDeptId=null
|
|
|
+ this.treeDeptId = null;
|
|
|
this.$refs.tree.setCurrentKey(null);
|
|
|
},
|
|
|
dicChange(name, row) {
|
|
|
@@ -2095,11 +2077,11 @@ export default {
|
|
|
},
|
|
|
// 商品信息价格计算
|
|
|
amountChange(value, row) {
|
|
|
- if (value > 0) {
|
|
|
- this.$refs.crud.toggleRowSelection(row, true);
|
|
|
- } else {
|
|
|
- this.$refs.crud.toggleRowSelection(row, false);
|
|
|
- }
|
|
|
+ // if (value > 0) {
|
|
|
+ // this.$refs.crud.toggleRowSelection(row, true);
|
|
|
+ // } else {
|
|
|
+ // this.$refs.crud.toggleRowSelection(row, false);
|
|
|
+ // }
|
|
|
// 价格
|
|
|
// if (!row.price) {
|
|
|
// row.price = 0;
|
|
|
@@ -2274,13 +2256,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- // 数量失焦触发
|
|
|
- goodsNumblurfun(row) {
|
|
|
- if (Number(row.goodsNum) > Number(row.inventory)) {
|
|
|
- this.$message.warning("不能大于库存数量");
|
|
|
- return;
|
|
|
- }
|
|
|
- },
|
|
|
editBtn(row, index) {
|
|
|
this.confirmEditing();
|
|
|
this.$refs.formContacts.rowEdit(row, index);
|