|
@@ -32,7 +32,7 @@
|
|
|
</trade-card>
|
|
|
<trade-card title="明细信息">
|
|
|
<el-tabs v-model="activeName" type="card">
|
|
|
- <el-tab-pane label="出库明细" name="sale_detail">
|
|
|
+ <el-tab-pane label="入库明细" name="sale_detail">
|
|
|
<avue-crud :option="optionContacts" v-model="formContacts" ref="formContacts" :data="form.shipItemsList"
|
|
|
:key="key"
|
|
|
@row-save="rowSave"
|
|
@@ -53,7 +53,7 @@
|
|
|
</avue-crud>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="订单信息" name="payment_details">
|
|
|
- <avue-crud :option="optionPaymentDetails" v-model="formContacts" ref="payment_details"
|
|
|
+ <avue-crud :option="optionPaymentDetails" ref="payment_details"
|
|
|
:data="form.shipVOList"
|
|
|
:key="key"
|
|
|
@resetColumn="resetColumnTwo('payment_details','optionPaymentDetails','optionPaymentDetailsBack',274.2)"
|
|
@@ -61,7 +61,7 @@
|
|
|
</avue-crud>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="历史记录" name="outbound_records">
|
|
|
- <avue-crud :option="optionOutboundRecords" v-model="formContacts" ref="outbound_records"
|
|
|
+ <avue-crud :option="optionOutboundRecords" ref="outbound_records"
|
|
|
:data="form.historyList"
|
|
|
:key="key"
|
|
|
@resetColumn="resetColumnTwo('outbound_records','optionOutboundRecords','optionOutboundRecordsBack',274.3)"
|
|
@@ -76,7 +76,13 @@
|
|
|
|
|
|
<script>
|
|
|
|
|
|
-import {getDetails, tradingBox, submit, warehousingComplete} from "@/api/tirePartsMall/purchasingManagement/warehouseEntryOrder";
|
|
|
+import {
|
|
|
+ getDetails,
|
|
|
+ tradingBox,
|
|
|
+ submit,
|
|
|
+ warehousingComplete,
|
|
|
+ goodsDetail
|
|
|
+} from "@/api/tirePartsMall/purchasingManagement/warehouseEntryOrder";
|
|
|
import {dateFormat} from "@/util/date";
|
|
|
|
|
|
export default {
|
|
@@ -213,10 +219,6 @@ export default {
|
|
|
dialogTop: 25,
|
|
|
dialogWidth: "80%",
|
|
|
column: [{
|
|
|
- label: '物料编码',
|
|
|
- prop: 'goodsNo',
|
|
|
- width: 100
|
|
|
- }, {
|
|
|
label: '商品名称',
|
|
|
prop: 'goodsId',
|
|
|
width: 200,
|
|
@@ -229,6 +231,10 @@ export default {
|
|
|
},
|
|
|
dicUrl: '/api/blade-sales-part/goodsDesc/goodsListAll'
|
|
|
}, {
|
|
|
+ label: '物料编码',
|
|
|
+ prop: 'goodsNo',
|
|
|
+ width: 100
|
|
|
+ }, {
|
|
|
label: "品牌",
|
|
|
prop: 'brandId',
|
|
|
width: 100,
|
|
@@ -281,11 +287,16 @@ export default {
|
|
|
}, {
|
|
|
label: "入库数量",
|
|
|
prop: "goodsNum",
|
|
|
- ovrHidden: true
|
|
|
+ ovrHidden: true,
|
|
|
}, {
|
|
|
label: "实际数量",
|
|
|
prop: "sendNum",
|
|
|
overHidden: true,
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: " ",
|
|
|
+ trigger: "blur"
|
|
|
+ }]
|
|
|
}, {
|
|
|
label: "备注",
|
|
|
prop: "remarks",
|
|
@@ -404,6 +415,16 @@ export default {
|
|
|
},
|
|
|
async created() {
|
|
|
this.optionContacts = await this.getColumnData(this.getColumnName(274.1), this.optionContactsBack);
|
|
|
+ this.findObject(this.optionContacts.column, "goodsId").change = ({value, column}) => {
|
|
|
+ goodsDetail({id: value}).then(res => {
|
|
|
+ this.formContacts.goodsNo = res.data.data.code
|
|
|
+ this.formContacts.brandId = res.data.data.brandId
|
|
|
+ this.formContacts.propertyName = res.data.data.specificationAndModel
|
|
|
+ this.formContacts.pattern = res.data.data.brandItem
|
|
|
+ this.formContacts.goodsDescription = res.data.data.goodsDescription
|
|
|
+ this.formContacts.units = res.data.data.unit
|
|
|
+ })
|
|
|
+ }
|
|
|
this.optionPaymentDetails = await this.getColumnData(this.getColumnName(274.2), this.optionPaymentDetailsBack);
|
|
|
this.optionOutboundRecords = await this.getColumnData(this.getColumnName(274.3), this.optionOutboundRecordsBack);
|
|
|
this.key++
|
|
@@ -439,7 +460,7 @@ export default {
|
|
|
},
|
|
|
//修改提交触发
|
|
|
editCustomer() {
|
|
|
- if (this.form.shipItemsList.length == 0){
|
|
|
+ if (this.form.shipItemsList.length == 0) {
|
|
|
return this.$message.warning('请明细不能为空')
|
|
|
}
|
|
|
this.$refs["form"].validate((valid, done) => {
|