Browse Source

数量修改

pengyh 1 năm trước cách đây
mục cha
commit
e792d4b110

+ 4 - 4
src/views/auxiliaryFittings/salesManagement/components/attachmentNewReturnDetail.vue

@@ -131,7 +131,7 @@
 					<el-table-column prop="goods.goodsSalesUnit" align="center" label="单位" ></el-table-column>
 					<el-table-column prop="" align="center" label="数量" >
 						<template slot-scope="scope">
-							<el-input type="number" v-model="scope.row.salesQty" :disabled="isEdit != scope.$index || formType == 2" placeholder="请输入"></el-input>
+							<el-input type="number" v-model="scope.row.newRefundqty" :disabled="isEdit != scope.$index || formType == 2" placeholder="请输入"></el-input>
 						</template>
 					</el-table-column>
 					<el-table-column prop="goods.goodsCode" align="center" label="配件编码"></el-table-column>
@@ -139,8 +139,8 @@
 					<el-table-column prop="goods.productRelaName" align="center" label="适用产品大类"></el-table-column>
 					<el-table-column prop="goods.price" align="center" label="销售价格"></el-table-column>
 					<el-table-column prop="" align="center" label="销售金额" >
-						<template slot-scope="scope" v-if="scope.row.salesQty && scope.row.goods && scope.row.goods.price">
-							{{(scope.row.goods.price * 100) * scope.row.salesQty / 100}}
+						<template slot-scope="scope" v-if="scope.row.newRefundqty && scope.row.goods && scope.row.goods.price">
+							{{(scope.row.goods.price * 100) * scope.row.newRefundqty / 100}}
 						</template>
 					</el-table-column>
 					<!-- <el-table-column prop="goods.qty" align="center" label="库存数量"></el-table-column> -->
@@ -341,7 +341,7 @@
 					price: '',
 					refundAmount: '',
 					saleAmount: '',
-					salesQty: 1,
+					newRefundqty: 1,
 					qty: '',
 					goodsType: 'P'
 				})

+ 6 - 6
src/views/auxiliaryFittings/salesManagement/components/attachmentOldReturnDetail.vue

@@ -136,7 +136,7 @@
 					<el-table-column prop="goods.goodsSalesUnit" align="center" label="单位" ></el-table-column>
 					<el-table-column prop="" align="center" label="数量" >
 						<template slot-scope="scope">
-							<el-input type="number" v-model="scope.row.retQty" :disabled="isEdit != scope.$index || formType == 2" placeholder="请输入"></el-input>
+							<el-input type="number" v-model="scope.row.oldRefundQty" :disabled="isEdit != scope.$index || formType == 2" placeholder="请输入"></el-input>
 						</template>
 					</el-table-column>
 					<el-table-column prop="goods.goodsCode" align="center" label="配件编码"></el-table-column>
@@ -144,8 +144,8 @@
 					<el-table-column prop="goods.productRelaName" align="center" label="适用产品大类"></el-table-column>
 					<el-table-column prop="goods.price" align="center" label="销售价格"></el-table-column>
 					<el-table-column prop="goods.saleAmount" align="center" label="销售金额" >
-						<template slot-scope="scope" v-if="scope.row.retQty && scope.row.goods && scope.row.goods.price">
-							{{(scope.row.goods.price * 100) * scope.row.retQty / 100}}
+						<template slot-scope="scope" v-if="scope.row.oldRefundQty && scope.row.goods && scope.row.goods.price">
+							{{(scope.row.goods.price * 100) * scope.row.oldRefundQty / 100}}
 						</template>
 					</el-table-column>
 					<!-- <el-table-column prop="goods.qty" align="center" label="库存数量"></el-table-column> -->
@@ -274,8 +274,8 @@
 					this.getWorker()
 					for(var item of res.data.websitPartsRetItemList){
 						var ress = await that.getGoods(item.goodsName, 1)
-						item.goods = {...ress.data,oldPrice:ress.data.price,retQty: 1}
-						item.goodsList = ress.data ? [{...ress.data,oldPrice:ress.data.price,retQty: 1}] : []
+						item.goods = {...ress.data,oldPrice:ress.data.price,oldRefundQty: 1}
+						item.goodsList = ress.data ? [{...ress.data,oldPrice:ress.data.price,oldRefundQty: 1}] : []
 					}
 					this.dataList = res.data.websitPartsRetItemList
 				})
@@ -349,7 +349,7 @@
 					refundAmount: '',
 					saleAmount: '',
 					salesQty: 1,
-					retQty: 1,
+					oldRefundQty: 1,
 					qty: '',
 					goodsType: 'P'
 				})

+ 2 - 3
src/views/auxiliaryFittings/salesManagement/components/auxiliarySalesOrderDetail.vue

@@ -88,9 +88,8 @@
 						<el-col :span="12">
 							<el-form-item label="订单来源" prop="source" :required="true">
 								<el-select v-model="formData.source" :disabled="formData.flag != 'SAVE' && formType!=0" placeholder="请选择" style="width: 100%;">
-									<!-- v-for="item in [{name: '在线订单',id: 'ONLINE'},{name: '自建订单',id: 'SELF'}]" -->
 								    <el-option
-									  v-for="item in [{name: '自建订单',id: 'SELF'}]"
+									  v-for="item in [{name: '在线订单',id: 'ONLINE'},{name: '自建订单',id: 'SELF'}]"
 								      :key="item.id"
 								      :label="item.name"
 								      :value="item.id">
@@ -246,7 +245,7 @@
 					workerId: '',
 					identity: '',
 					workerMobile: '',
-					source: '',
+					source: 'SELF',
 					payType: '',
 					remark: '',
 					totalAmount: ''