diff --git a/src/api/materials/purchaseDoc/index.ts b/src/api/materials/purchaseDoc/index.ts
index c2ae764..bcaaf4a 100644
--- a/src/api/materials/purchaseDoc/index.ts
+++ b/src/api/materials/purchaseDoc/index.ts
@@ -78,6 +78,22 @@ export const uploadCode = (data: any) => {
return request(config);
};
+// 获取物流单号
+export const ltnList = (data: any) => {
+ const config: any = {
+ url: '/cailiaoshebei/ltn/list?docId=' + data.docId,
+ method: 'get'
+ };
+ // 如果 query.token 存在,就覆盖请求头里的 token
+ if (data.token) {
+ config.headers = {
+ Authorization: data.token
+ };
+ }
+
+ return request(config);
+};
+
export const listLink = (data: any) => {
return request({
url: '/cailiaoshebei/ltn/list',
diff --git a/src/views/materials/materialsEquipment/materialReceive/index.vue b/src/views/materials/materialsEquipment/materialReceive/index.vue
index 020f8e8..fa8357e 100644
--- a/src/views/materials/materialsEquipment/materialReceive/index.vue
+++ b/src/views/materials/materialsEquipment/materialReceive/index.vue
@@ -145,17 +145,13 @@
-
+
@@ -163,17 +159,13 @@
-
+
@@ -182,7 +174,7 @@
@@ -191,7 +183,7 @@
@@ -200,7 +192,7 @@
-
+
@@ -508,6 +500,7 @@ const getlistPurchase = async () => {
projectId: currentProject.value?.id,
status: 'finish'
});
+
purchaseDocList.value = res.rows;
if (purchaseDocList.value && purchaseDocList.value.length > 0) {
purchaseDocList.value.forEach((item) => {
@@ -522,6 +515,8 @@ const getdemandInfo = async (docId: string) => {
if (res.code == 200) {
// 需求表单赋值
form.value.itemList = [];
+ // form.value.itemList 清空
+ console.log(form.value.itemList);
res.data.forEach((item, index) => {
let obj = {
quantity: item.demandQuantity,
diff --git a/src/views/materials/overallPlanMaterialSupply/index.vue b/src/views/materials/overallPlanMaterialSupply/index.vue
index e112eeb..bd8a65c 100644
--- a/src/views/materials/overallPlanMaterialSupply/index.vue
+++ b/src/views/materials/overallPlanMaterialSupply/index.vue
@@ -25,7 +25,7 @@
border
>
-
+
diff --git a/src/views/materials/purchaseDoc/index.vue b/src/views/materials/purchaseDoc/index.vue
index 759370a..580cd71 100644
--- a/src/views/materials/purchaseDoc/index.vue
+++ b/src/views/materials/purchaseDoc/index.vue
@@ -7,14 +7,12 @@
-
-
搜索
重置
@@ -23,45 +21,35 @@
-
新增
-
- 修改
-
-
-
-
+
+
+
-
-
+
{{ parseTime(scope.row.arrivalDate, '{y}-{m}-{d}') }}
-
-
-
+
查看物流单
-
+
{{ parseTime(scope.row.preparedDate, '{y}-{m}-{d}') }}
@@ -71,7 +59,6 @@
回单
-
@@ -79,10 +66,33 @@
-
+
审核
-
+ 查看
+ 上传
-
@@ -118,7 +127,6 @@
>
-
-
-
@@ -169,11 +177,11 @@
>
-
+ > -->
@@ -251,7 +259,7 @@ const total = ref(0);
const feedbackUrl = ref('');
const queryFormRef = ref();
const purchaseDocFormRef = ref();
-const IP = 'http://192.168.110.142:7788';
+const IP = 'http://192.168.110.151:7788';
const dialog = reactive({
visible: false,
@@ -275,7 +283,6 @@ const initFormData: any = {
receivingAddress: undefined,
contacts: undefined,
associationList: [],
-
projectDirector: undefined,
purchasingAgent: undefined,
preparedDate: undefined,
@@ -312,7 +319,16 @@ const data = reactive({
params: {}
},
rules: {
- id: [{ required: true, message: '主键ID不能为空', trigger: 'blur' }]
+ id: [{ required: true, message: '主键ID不能为空', trigger: 'blur' }],
+ // 电话号码验证
+ technicalDirectorTel: [
+ { required: true, message: '请输入电话', trigger: 'blur' },
+ { pattern: /^1[3-9]\d{9}$/, message: '请输入正确的手机号码', trigger: 'blur' }
+ ],
+ designDirectorTel: [
+ { required: true, message: '请输入电话', trigger: 'blur' },
+ { pattern: /^1[3-9]\d{9}$/, message: '请输入正确的手机号码', trigger: 'blur' }
+ ]
}
});
@@ -356,7 +372,7 @@ const fileList = ref([]);
const viewVisible = ref(false);
const handleView = async (row?: any) => {
const res = await listLink({
- id: row.id
+ docId: row.id
});
fileList.value = res.rows;
@@ -448,7 +464,7 @@ const getSupplierList = async () => {
supplierOptions.value = res.rows;
};
-/** 删除按钮操作 */
+/** 分享按钮操作 */
const handleShare = async (row?: PurchaseDocVO) => {
const textarea = document.createElement('textarea');
const data = JSON.stringify({
@@ -457,8 +473,10 @@ const handleShare = async (row?: PurchaseDocVO) => {
projectId: currentProject.value?.id,
token: 'Bearer ' + getToken()
});
+ // 获取当前域名地址
+ console.log(location);
textarea.value = IP + '/materials/purchaseDoc/uploadCode?data=' + data;
-
+ // textarea.value = location.host + '/materials/purchaseDoc/uploadCode?data=' + data;
textarea.style.position = 'fixed';
textarea.style.opacity = '0';
document.body.appendChild(textarea);
@@ -499,6 +517,14 @@ const handleAudit = async (row?: PurchaseDocVO) => {
type: 'update'
});
};
+/** 审核按钮操作 */
+const handleViewDetail = async (row?: PurchaseDocVO) => {
+ proxy?.$tab.closePage(route);
+ proxy?.$tab.openPage('/materials/purchaseDoc/indexEdit', '审核采购联系单', {
+ id: row.id,
+ type: 'view'
+ });
+};
onMounted(() => {
getList();
diff --git a/src/views/materials/purchaseDoc/uploadCode.vue b/src/views/materials/purchaseDoc/uploadCode.vue
index e09b283..88eb542 100644
--- a/src/views/materials/purchaseDoc/uploadCode.vue
+++ b/src/views/materials/purchaseDoc/uploadCode.vue
@@ -3,32 +3,48 @@
-
+ 物流单号填写
-
-
+
+
+
+
+
-
+
-
+
+
-
-
+
+
-
-
-
+
+
+
+
+
+
+
+
@@ -43,11 +59,17 @@