|
|
@ -276,7 +276,12 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="物料单位" prop="orderCode"> |
|
|
|
<el-form-item label="物料单位" prop="orderCode"> |
|
|
|
<!-- <el-input v-model="formMaterial.unit" placeholder="请输入物料单位"/>--> |
|
|
|
<!-- <el-input v-model="formMaterial.unit" placeholder="请输入物料单位"/>--> |
|
|
|
<el-select v-model="formMaterial.materialUnit" clearable placeholder="请选择单位" disabled> |
|
|
|
<el-select |
|
|
|
|
|
|
|
v-model="formMaterial.materialUnit" |
|
|
|
|
|
|
|
clearable |
|
|
|
|
|
|
|
placeholder="请选择单位" |
|
|
|
|
|
|
|
disabled |
|
|
|
|
|
|
|
> |
|
|
|
<el-option |
|
|
|
<el-option |
|
|
|
v-for="item in logpmUnit" |
|
|
|
v-for="item in logpmUnit" |
|
|
|
:key="item.dictKey" |
|
|
|
:key="item.dictKey" |
|
|
@ -287,7 +292,7 @@ |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="SKU" prop="mallName"> |
|
|
|
<el-form-item label="SKU" prop="mallName"> |
|
|
|
<el-input v-model="formMaterial.sku" placeholder="请输入SKU" disabled/> |
|
|
|
<el-input v-model="formMaterial.sku" placeholder="请输入SKU" disabled /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="规格"> |
|
|
|
<el-form-item label="规格"> |
|
|
|
<el-input |
|
|
|
<el-input |
|
|
@ -334,7 +339,7 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog title="二维码" :visible.sync="dialogVisible" width="780px" v-model="dialogVisible"> |
|
|
|
<!-- <el-dialog title="二维码" :visible.sync="dialogVisible" width="780px" v-model="dialogVisible"> |
|
|
|
<div class="print_QRCode"> |
|
|
|
<div class="print_QRCode"> |
|
|
|
<div v-html="html"></div> |
|
|
|
<div v-html="html"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -342,9 +347,11 @@ |
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button> |
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button> |
|
|
|
<el-button type="primary" icon="Printer" @click="printTemplate">打 印</el-button> |
|
|
|
<el-button type="primary" icon="Printer" @click="printTemplate">打 印</el-button> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> --> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<MyPrint :html="html" v-model="dialogVisible" title="二维码" type="titlePrint" /> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog v-model="waybillrecipient" title="修改运单收货人"> |
|
|
|
<el-dialog v-model="waybillrecipient" title="修改运单收货人"> |
|
|
|
<el-form |
|
|
|
<el-form |
|
|
|
v-loading="loadingwaybillrecipient" |
|
|
|
v-loading="loadingwaybillrecipient" |
|
|
@ -425,6 +432,7 @@ import dayjs from 'dayjs'; |
|
|
|
import print from '@/utils/print'; |
|
|
|
import print from '@/utils/print'; |
|
|
|
import { ElMessage } from 'element-plus'; |
|
|
|
import { ElMessage } from 'element-plus'; |
|
|
|
import { hanleTextLineFeed, handleClearTableQuery } from '@/utils/util'; |
|
|
|
import { hanleTextLineFeed, handleClearTableQuery } from '@/utils/util'; |
|
|
|
|
|
|
|
import MyPrint from '@/components/MyPrint/MyPrint.vue'; |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: '/distribution/inventory/distributionStockArticleDetails', |
|
|
|
name: '/distribution/inventory/distributionStockArticleDetails', |
|
|
|
data() { |
|
|
|
data() { |
|
|
@ -505,7 +513,7 @@ export default { |
|
|
|
loadingObj: { |
|
|
|
loadingObj: { |
|
|
|
pageLoading: false, |
|
|
|
pageLoading: false, |
|
|
|
tableLoading: false, |
|
|
|
tableLoading: false, |
|
|
|
packtableLoading:false, |
|
|
|
packtableLoading: false, |
|
|
|
}, |
|
|
|
}, |
|
|
|
pageId: '', |
|
|
|
pageId: '', |
|
|
|
}; |
|
|
|
}; |
|
|
@ -523,10 +531,10 @@ export default { |
|
|
|
this.page.currentPage = 1; |
|
|
|
this.page.currentPage = 1; |
|
|
|
this.pageId = this.$route.query.id; |
|
|
|
this.pageId = this.$route.query.id; |
|
|
|
this.onLoad(this.page); |
|
|
|
this.onLoad(this.page); |
|
|
|
console.log(this.$route.query,'this.$route.query'); |
|
|
|
console.log(this.$route.query, 'this.$route.query'); |
|
|
|
if(this.$route.query.isZero ==1){ |
|
|
|
if (this.$route.query.isZero == 1) { |
|
|
|
this.onLoadOwn(this.page); |
|
|
|
this.onLoadOwn(this.page); |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
this.package(); |
|
|
|
this.package(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -637,7 +645,7 @@ export default { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.queryPage[row.prop] = index; |
|
|
|
this.queryPage[row.prop] = index; |
|
|
|
} |
|
|
|
} |
|
|
|
this.package() |
|
|
|
this.package(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
timesc(index, row) { |
|
|
|
timesc(index, row) { |
|
|
|
console.log(index, row); |
|
|
|
console.log(index, row); |
|
|
@ -648,12 +656,12 @@ export default { |
|
|
|
if (!index) { |
|
|
|
if (!index) { |
|
|
|
delete this.queryPage[row.prop]; |
|
|
|
delete this.queryPage[row.prop]; |
|
|
|
} |
|
|
|
} |
|
|
|
this.package() |
|
|
|
this.package(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
inputsc(index, row) { |
|
|
|
inputsc(index, row) { |
|
|
|
this.queryPage[row.prop] = index; |
|
|
|
this.queryPage[row.prop] = index; |
|
|
|
if (!index) delete this.queryPage[row.prop]; |
|
|
|
if (!index) delete this.queryPage[row.prop]; |
|
|
|
this.package() |
|
|
|
this.package(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
printTemplate() { |
|
|
|
printTemplate() { |
|
|
|
const orderNodeList = document.querySelectorAll('.print_QRCode>div>div'); |
|
|
|
const orderNodeList = document.querySelectorAll('.print_QRCode>div>div'); |
|
|
@ -973,8 +981,8 @@ export default { |
|
|
|
handleClearTableQuery(zerocolumnList); |
|
|
|
handleClearTableQuery(zerocolumnList); |
|
|
|
this.onLoadOwn(); |
|
|
|
this.onLoadOwn(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
packsearchChange(){ |
|
|
|
packsearchChange() { |
|
|
|
this.package() |
|
|
|
this.package(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
searchReset() { |
|
|
|
searchReset() { |
|
|
|
this.query = {}; |
|
|
|
this.query = {}; |
|
|
@ -1236,11 +1244,11 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
currentChange(currentPage) { |
|
|
|
currentChange(currentPage) { |
|
|
|
this.page.currentPage = currentPage; |
|
|
|
this.page.currentPage = currentPage; |
|
|
|
this.package() |
|
|
|
this.package(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
sizeChange(pageSize) { |
|
|
|
sizeChange(pageSize) { |
|
|
|
this.page.pageSize = pageSize; |
|
|
|
this.page.pageSize = pageSize; |
|
|
|
this.package() |
|
|
|
this.package(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad(page, params = {}) { |
|
|
|
onLoad(page, params = {}) { |
|
|
|
try { |
|
|
|
try { |
|
|
@ -1301,7 +1309,7 @@ export default { |
|
|
|
current: this.page.currentPage, |
|
|
|
current: this.page.currentPage, |
|
|
|
size: this.page.pageSize, |
|
|
|
size: this.page.pageSize, |
|
|
|
stockArticleId: this.$route.query.id, |
|
|
|
stockArticleId: this.$route.query.id, |
|
|
|
... this.queryPage, |
|
|
|
...this.queryPage, |
|
|
|
}; |
|
|
|
}; |
|
|
|
let _res = await getPackageList(_data); |
|
|
|
let _res = await getPackageList(_data); |
|
|
|
console.log(_res, '包件信息'); |
|
|
|
console.log(_res, '包件信息'); |
|
|
@ -1315,7 +1323,6 @@ export default { |
|
|
|
item.materialCodeMaintainStatus = item.materialId ? '已维护' : '未维护'; |
|
|
|
item.materialCodeMaintainStatus = item.materialId ? '已维护' : '未维护'; |
|
|
|
} |
|
|
|
} |
|
|
|
this.page.total = data.total; |
|
|
|
this.page.total = data.total; |
|
|
|
|
|
|
|
|
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
console.log(e, 'error'); |
|
|
|
console.log(e, 'error'); |
|
|
|
} finally { |
|
|
|
} finally { |
|
|
|