|
@@ -1261,7 +1261,7 @@ const createPurchaseOrders = function () {
|
|
data.Total_Discount = totalDiscount.value
|
|
data.Total_Discount = totalDiscount.value
|
|
data.Adjustment = adjustment.value
|
|
data.Adjustment = adjustment.value
|
|
data.Grand_Total = grandTotal.value
|
|
data.Grand_Total = grandTotal.value
|
|
- data.Subject = '这里不用填个p4'
|
|
|
|
|
|
+ data.Subject = '这里不用填'
|
|
data.Created_By = {
|
|
data.Created_By = {
|
|
id: userInfo.value.users_id || route.query.user,
|
|
id: userInfo.value.users_id || route.query.user,
|
|
name: userInfo.value.full_name || '',
|
|
name: userInfo.value.full_name || '',
|
|
@@ -1865,15 +1865,13 @@ axios
|
|
(item: any) => !productBlackList.includes(item.product_id),
|
|
(item: any) => !productBlackList.includes(item.product_id),
|
|
)
|
|
)
|
|
|
|
|
|
- if (import.meta.env.MODE !== 'production') {
|
|
|
|
- temp = [
|
|
|
|
- {
|
|
|
|
- product_id: '5757019000000523001',
|
|
|
|
- product_name: '测试商品, 强行写的',
|
|
|
|
- quantity: 3,
|
|
|
|
- rate: 2,
|
|
|
|
- },
|
|
|
|
- ]
|
|
|
|
|
|
+ if (import.meta.env.MODE !== 'production' && temp.length < 1) {
|
|
|
|
+ temp.unshift({
|
|
|
|
+ product_id: '5757019000000523001',
|
|
|
|
+ product_name: 'peter607',
|
|
|
|
+ quantity: 3,
|
|
|
|
+ rate: 2,
|
|
|
|
+ })
|
|
}
|
|
}
|
|
if (!temp.length) return
|
|
if (!temp.length) return
|
|
form.value.productList = []
|
|
form.value.productList = []
|