|
@@ -50,18 +50,18 @@
|
|
|
<el-select v-else-if="item.prop === 'purchaseMode'" v-model="form[item.prop]" placeholder="请选择" clearable filterable style="width: 100%" size="small">
|
|
|
<el-option v-for="(item,index) in procurementMethodOption" :key="index" :label="item.dictValue" :value="item.dictValue"></el-option>
|
|
|
</el-select>
|
|
|
- <avue-input-tree
|
|
|
- v-else-if="item.prop === 'warehouseType'"
|
|
|
- leaf-only
|
|
|
- placeholder="请选择内容"
|
|
|
- :dic="warehouseType"
|
|
|
- type="tree"
|
|
|
- v-model="form[item.prop]"
|
|
|
- style="width: 100%"
|
|
|
- size="small"
|
|
|
- @change="warehouseTreeChange"
|
|
|
- >
|
|
|
- </avue-input-tree>
|
|
|
+<!-- <avue-input-tree-->
|
|
|
+<!-- v-else-if="item.prop === 'warehouseType'"-->
|
|
|
+<!-- leaf-only-->
|
|
|
+<!-- placeholder="请选择内容"-->
|
|
|
+<!-- :dic="warehouseType"-->
|
|
|
+<!-- type="tree"-->
|
|
|
+<!-- v-model="form[item.prop]"-->
|
|
|
+<!-- style="width: 100%"-->
|
|
|
+<!-- size="small"-->
|
|
|
+<!-- @change="warehouseTreeChange"-->
|
|
|
+<!-- >-->
|
|
|
+<!-- </avue-input-tree>-->
|
|
|
<el-select v-else-if="item.prop === 'storageId'" v-model="form[item.prop]" placeholder="请选择" clearable filterable style="width: 100%" size="small">
|
|
|
<el-option v-for="(item,index) in warehouseName" :key="index" :label="item.cname" :value="item.id" size="small"></el-option>
|
|
|
</el-select>
|
|
@@ -565,6 +565,9 @@ export default {
|
|
|
}
|
|
|
this.warehouseType = result
|
|
|
});
|
|
|
+ selectWareHouse().then(res => {
|
|
|
+ this.warehouseName = res.data.data.records
|
|
|
+ })
|
|
|
if (this.detailData.id) {
|
|
|
this.queryData(this.detailData.id)
|
|
|
}else if (this.detailData.form){
|
|
@@ -759,7 +762,7 @@ export default {
|
|
|
this.contactsData[this.choiceIndexT].itemId = this.tableData[0].id
|
|
|
selectGoodsNum({
|
|
|
goodsId: this.tableData[0].id,
|
|
|
- typeno: this.tableData[0].specs
|
|
|
+ typeno: this.tableData[0].typeno
|
|
|
}).then(res => {
|
|
|
this.contactsData[this.choiceIndexT].storageQuantity = res.data.data
|
|
|
})
|
|
@@ -804,7 +807,7 @@ export default {
|
|
|
for (let item in this.tableData) {
|
|
|
selectGoodsNum({
|
|
|
goodsId: this.tableData[item].id,
|
|
|
- typeno: this.tableData[item].specs
|
|
|
+ typeno: this.tableData[item].typeno
|
|
|
}).then(res => {
|
|
|
this.tableData[item].storageQuantity = res.data.data
|
|
|
this.tableData[item].itemId = this.tableData[item].id
|
|
@@ -813,7 +816,7 @@ export default {
|
|
|
delete this.tableData[item].id
|
|
|
delete this.tableData[item].status
|
|
|
delete this.tableData[item].isDeleted
|
|
|
- this.$set(this.tableData[item], 'specificationAndModel', this.tableData[item].specs)
|
|
|
+ this.$set(this.tableData[item], 'specificationAndModel', this.tableData[item].specificationAndModel)
|
|
|
this.$set(this.tableData[item], 'purchaseQuantity', 0)
|
|
|
this.$set(this.tableData[item], 'actualQuantity', 0)
|
|
|
this.$set(this.tableData[item], 'purchaseAmount', 0)
|