|
@@ -92,12 +92,12 @@ export default {
|
|
|
},
|
|
|
// 统计查询
|
|
|
getTotalData (flag) {
|
|
|
+ const _this = this
|
|
|
findBySalesBillSn({ salesBillSn: this.$route.params.salesBillSn }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.totalData = res.data || null
|
|
|
if (res.data && Object.keys(res.data).length > 0) {
|
|
|
this.productForm.dispatchBillSn = res.data.dispatchBillSn
|
|
|
- const _this = this
|
|
|
if (flag) {
|
|
|
_this.$refs.waitProduct.pageInit(this.productForm, this.detailData, this.$refs.partQuery.activeList)
|
|
|
} else {
|
|
@@ -149,8 +149,7 @@ export default {
|
|
|
upStockType (hasLt, stockType) {
|
|
|
console.log(hasLt, stockType)
|
|
|
this.$refs.partQuery.stockDisabled = hasLt
|
|
|
- this.$refs.partQuery.hasJGtire = hasLt
|
|
|
- this.$refs.partQuery.stockType = stockType
|
|
|
+ this.$refs.partQuery.stockType = this.totalData.stockType
|
|
|
},
|
|
|
// 整单取消
|
|
|
cancelAll () {
|