|
@@ -121,17 +121,16 @@
|
|
|
<el-form-item label="订单类型" prop="needProduce">
|
|
<el-form-item label="订单类型" prop="needProduce">
|
|
|
<el-radio
|
|
<el-radio
|
|
|
v-model="form.needProduce"
|
|
v-model="form.needProduce"
|
|
|
- :label="1"
|
|
|
|
|
|
|
+ :label="0"
|
|
|
@change="needProduceChange"
|
|
@change="needProduceChange"
|
|
|
- >有客户生产性订单</el-radio
|
|
|
|
|
|
|
+ >库存式订单</el-radio
|
|
|
>
|
|
>
|
|
|
<el-radio
|
|
<el-radio
|
|
|
v-model="form.needProduce"
|
|
v-model="form.needProduce"
|
|
|
- :label="0"
|
|
|
|
|
|
|
+ :label="1"
|
|
|
@change="needProduceChange"
|
|
@change="needProduceChange"
|
|
|
- >库存式订单</el-radio
|
|
|
|
|
|
|
+ >有客户生产性订单</el-radio
|
|
|
>
|
|
>
|
|
|
-
|
|
|
|
|
<el-radio
|
|
<el-radio
|
|
|
v-model="form.needProduce"
|
|
v-model="form.needProduce"
|
|
|
:label="2"
|
|
:label="2"
|
|
@@ -1312,10 +1311,12 @@
|
|
|
this.changeParent({ id: this.contactData.id });
|
|
this.changeParent({ id: this.contactData.id });
|
|
|
}
|
|
}
|
|
|
this.form.saleType = 1;
|
|
this.form.saleType = 1;
|
|
|
|
|
+ this.form.progress = 700;
|
|
|
//嘉实默认值
|
|
//嘉实默认值
|
|
|
if (this.clientEnvironmentId == 5) {
|
|
if (this.clientEnvironmentId == 5) {
|
|
|
this.form.saleType = 2;
|
|
this.form.saleType = 2;
|
|
|
this.form.needProduce = 0;
|
|
this.form.needProduce = 0;
|
|
|
|
|
+ this.form.progress = 700;
|
|
|
this.form.settlementMode = '6';
|
|
this.form.settlementMode = '6';
|
|
|
}
|
|
}
|
|
|
//宝悦默认值
|
|
//宝悦默认值
|
|
@@ -1332,6 +1333,7 @@
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.form.totalAmount = 0;
|
|
this.form.totalAmount = 0;
|
|
|
this.form.payAmount = 0;
|
|
this.form.payAmount = 0;
|
|
|
|
|
+ this.form.progress = this.form.needProduce == 0 ? 700 : 0;
|
|
|
this.$refs.inventoryTable &&
|
|
this.$refs.inventoryTable &&
|
|
|
this.$refs.inventoryTable.putTableValue({});
|
|
this.$refs.inventoryTable.putTableValue({});
|
|
|
this.$refs.typeListRef && this.$refs.typeListRef.putTableValue([]);
|
|
this.$refs.typeListRef && this.$refs.typeListRef.putTableValue([]);
|
|
@@ -1427,7 +1429,8 @@
|
|
|
let commitData = Object.assign({}, this.form, {
|
|
let commitData = Object.assign({}, this.form, {
|
|
|
productList: this.$refs?.inventoryTable?.getTableValue() || [],
|
|
productList: this.$refs?.inventoryTable?.getTableValue() || [],
|
|
|
typedetailList: this.$refs?.typeListRef?.getTableValue() || [],
|
|
typedetailList: this.$refs?.typeListRef?.getTableValue() || [],
|
|
|
- saleTypeName: this.getDictValue('销售类型', this.form.saleType)
|
|
|
|
|
|
|
+ saleTypeName: this.getDictValue('销售类型', this.form.saleType),
|
|
|
|
|
+ // progress: this.form.needProduce == 0 ? 700 : 0
|
|
|
});
|
|
});
|
|
|
commitData.productList.forEach((item) => {
|
|
commitData.productList.forEach((item) => {
|
|
|
if (!item.productCode) {
|
|
if (!item.productCode) {
|