|
@@ -9,7 +9,7 @@
|
|
|
<uni-forms-item v-if="valiFormData.search_order_choice === 2" label="批次号" name="batch_number">
|
|
|
<uni-data-select v-model="valiFormData.batch_number" :localdata="batchOptions" placeholder="请选择批次号"></uni-data-select>
|
|
|
</uni-forms-item>
|
|
|
- <uni-forms-item v-if="valiFormData.search_order_choice !== 2" label="仓位编码" name="space_code">
|
|
|
+ <uni-forms-item v-if="valiFormData.search_order_choice === 1" label="仓位编码" name="space_code">
|
|
|
<uni-data-select v-model="valiFormData.space_code" :localdata="spaces" placeholder="请选择仓位编码"></uni-data-select>
|
|
|
</uni-forms-item>
|
|
|
<uni-forms-item v-if="valiFormData.search_order_choice !== 2" label="重量" required name="weight">
|
|
@@ -97,13 +97,14 @@
|
|
|
@close="dialogClose"
|
|
|
></uni-popup-dialog>
|
|
|
</uni-popup>
|
|
|
- <PrinterListScan></PrinterListScan>
|
|
|
+ <printer-list-scan></printer-list-scan>
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
import permision from '@/common/permission.js';
|
|
|
+import printerListScan from '@/components/printerListScan';
|
|
|
import { ref, reactive, nextTick, provide } from 'vue';
|
|
|
-import { instockScanURL, outStockScanURL, weighScanURL, checkWaybillGoodsURL, getWarehouseSpaceURL, getBindParamsURL,getPrinterListURL } from '@/utils/api.js';
|
|
|
+import { instockScanURL, outStockScanURL, weighScanURL, checkWaybillGoodsURL, getWarehouseSpaceURL, getBindParamsURL, getPrinterListURL } from '@/utils/api.js';
|
|
|
export default {
|
|
|
data() {
|
|
|
const token = ref(null);
|
|
@@ -390,12 +391,8 @@ export default {
|
|
|
this.printerList.batoken = this.token;
|
|
|
this.printerList.title = '打印尾程面单';
|
|
|
this.printerList.postData = {
|
|
|
- order_no: this.valiFormData.orderNum,
|
|
|
- weight: this.valiFormData.weight,
|
|
|
- space_code: this.valiFormData.space_code,
|
|
|
- is_save_goods: is_save_goods
|
|
|
+ order_no: this.valiFormData.orderNum
|
|
|
};
|
|
|
- this.printerList.postURL = instockScanURL;
|
|
|
// this.printerList.resetForm = () => resetForm(ruleFormRef.value);
|
|
|
// res.data.data.labels.map((url: string) => {
|
|
|
// let path = fullUrl(url);
|
|
@@ -466,10 +463,8 @@ export default {
|
|
|
this.printerList.batoken = this.token;
|
|
|
this.printerList.title = '打印尾程面单';
|
|
|
this.printerList.postData = {
|
|
|
- order_no: this.valiFormData.orderNum,
|
|
|
- batch_number: this.valiFormData.batch_number
|
|
|
+ order_no: this.valiFormData.orderNum
|
|
|
};
|
|
|
- this.printerList.postURL = outStockScanURL;
|
|
|
// res.data.data.labels.map((url: string) => {
|
|
|
// let path = fullUrl(url);
|
|
|
// window.open(path, '_blank');
|
|
@@ -570,14 +565,21 @@ export default {
|
|
|
this.instockScan(0);
|
|
|
},
|
|
|
onsubmit() {
|
|
|
- this.$refs.valiForm
|
|
|
- .validate()
|
|
|
- .then((res) => {
|
|
|
- this.warehouseScan();
|
|
|
- })
|
|
|
- .catch((err) => {
|
|
|
- console.log('err', err);
|
|
|
- });
|
|
|
+ this.printerList.visible = true;
|
|
|
+ this.printerList.batoken = this.token;
|
|
|
+ this.printerList.title = '打印尾程面单';
|
|
|
+ this.printerList.postData = {
|
|
|
+ order_no: this.valiFormData.orderNum
|
|
|
+ };
|
|
|
+
|
|
|
+ // this.$refs.valiForm
|
|
|
+ // .validate()
|
|
|
+ // .then((res) => {
|
|
|
+ // this.warehouseScan();
|
|
|
+ // })
|
|
|
+ // .catch((err) => {
|
|
|
+ // console.log('err', err);
|
|
|
+ // });
|
|
|
},
|
|
|
getHistory() {
|
|
|
// this.instockHistory = uni.getStorageSync('history')
|