Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

hella_online_20241212_pandian
赵雪冰 2 months ago
parent
commit
cbbaa5a41d
  1. 7
      README.md
  2. 2
      src/components/BasicForm/src/BasicForm.vue
  3. 4
      src/components/TableForm/src/TableForm.vue
  4. 40
      src/views/system/passwordRule/index.vue
  5. 2
      src/views/wms/countManage/countadjust/countadjustRequestMain/countadjustRequestMain.data.ts
  6. 3
      src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue
  7. 9
      src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue
  8. 3
      src/views/wms/issueManage/productionscrap/productionscrapRequestMain/productionscrapRequestMain.data.ts
  9. 7
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue
  10. 3
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

7
README.md

@ -100,7 +100,12 @@ tableForm:{
}] }]
}, },
tableForm: {
type: 'InputNumber',
minField: 0, // 每行数据不同最小值
precision: 2,
maxField:'maxQty' // 每行数据不同最大值
}
**主子表合并需要修改的代码** **主子表合并需要修改的代码**
1、影响Table表头 1、影响Table表头

2
src/components/BasicForm/src/BasicForm.vue

@ -281,7 +281,7 @@ const props = defineProps({
}, },
// //
updateTypeEdiltSubList: { updateTypeEdiltSubList: {
type: String, type: Boolean,
required: false, required: false,
default: false default: false
}, },

4
src/components/TableForm/src/TableForm.vue

@ -148,8 +148,8 @@
style="width: 100%" style="width: 100%"
:key="headerItem.field + $index" :key="headerItem.field + $index"
v-model="row[headerItem.field]" v-model="row[headerItem.field]"
:max="headerItem?.tableForm?.max" :max="headerItem?.tableForm?.maxField?row[headerItem?.tableForm?.maxField]:headerItem?.tableForm?.max"
:min="headerItem?.tableForm?.min" :min="headerItem?.tableForm?.minField?row[headerItem?.tableForm?.minField]:headerItem?.tableForm?.min"
:precision="headerItem?.tableForm?.precision" :precision="headerItem?.tableForm?.precision"
:disabled="itemIsDisabled(headerItem, row)" :disabled="itemIsDisabled(headerItem, row)"
@change=" @change="

40
src/views/system/passwordRule/index.vue

@ -26,26 +26,26 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<div>{{passwordConfig.ruleDesc}}</div> <div>{{passwordConfig.ruleDesc}}</div>
<el-col> <!-- <el-col>-->
<el-form-item label="每分钟密码输入错误" prop="tryCount"> <!-- <el-form-item label="每分钟密码输入错误" prop="tryCount">-->
<el-input-number <!-- <el-input-number-->
v-model="passwordConfig.tryCount" <!-- v-model="passwordConfig.tryCount"-->
:min="3" <!-- :min="3"-->
:precision="0" <!-- :precision="0"-->
style="margin-right: 10px" <!-- style="margin-right: 10px"-->
/> <!-- />-->
</el-form-item> <!-- </el-form-item>-->
</el-col> <!-- </el-col>-->
<el-col> <!-- <el-col>-->
<el-form-item label="锁定" prop="lockHours"> <!-- <el-form-item label="锁定" prop="lockHours">-->
<el-input-number <!-- <el-input-number-->
v-model="passwordConfig.lockHours" <!-- v-model="passwordConfig.lockHours"-->
:min="1" <!-- :min="1"-->
:precision="0" <!-- :precision="0"-->
style="margin-right: 10px" <!-- style="margin-right: 10px"-->
/> <!-- />-->
</el-form-item> <!-- </el-form-item>-->
</el-col> <!-- </el-col>-->
<el-col> <el-col>
<el-form-item label="24小时内密码输入错误" prop="tryCount"> <el-form-item label="24小时内密码输入错误" prop="tryCount">
<el-input-number <el-input-number

2
src/views/wms/countManage/countadjust/countadjustRequestMain/countadjustRequestMain.data.ts

@ -637,7 +637,7 @@ export const CountadjustRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
field: 'action', field: 'action',
isDetail: false, isDetail: false,
isForm: false , isForm: false ,
isTable:false, isTable:true,
table: { table: {
width: 150, width: 150,
fixed: 'right' fixed: 'right'

3
src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue

@ -71,6 +71,9 @@
:apiDelete="CountadjustRequestDetailApi.deleteCountadjustRequestDetail" :apiDelete="CountadjustRequestDetailApi.deleteCountadjustRequestDetail"
fromeWhere="countadjustRequest" fromeWhere="countadjustRequest"
:detailButtonIsShowAdd="false" :detailButtonIsShowAdd="false"
:detailButtonIsShowEdit="false"
:detailButtonIsShowDelete="true"
:detailButtonIsShowAddStatusArray="['1']"
:Echo="Echo" :Echo="Echo"
@searchTableSuccessDetail="searchTableSuccessDetail" @searchTableSuccessDetail="searchTableSuccessDetail"
/> />

9
src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue

@ -254,19 +254,14 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
row['uom'] = val[0]['uom'] row['uom'] = val[0]['uom']
row['inventoryStatus'] = val[0]['inventoryStatus'] row['inventoryStatus'] = val[0]['inventoryStatus']
row['qty'] = val[0]['qty'] row['qty'] = val[0]['qty']
// 000000 // 000000
if (val[0]['batch'] !== '') { if (val[0]['batch'] !== '') {
row['batch'] = val[0]['batch'] row['batch'] = val[0]['batch']
} else { } else {
row['batch'] = '000000' row['batch'] = '000000'
} }
// tableform row['maxQty'] = val[0]['qty']
// TODO: tableFormColumns 10 20 20
ProductionscrapRequestDetail.allSchemas.tableFormColumns.map(item => {
if(item.field == 'qty' && val[0]['qty'] > 0) {
item.tableForm.max = val[0]['qty']
}
})
let param = {'itemCodes':val[0]['itemCode']} let param = {'itemCodes':val[0]['itemCode']}
let resyStdcost = await StdcostpriceApi.queryStdcostpriceByItemCode(param) let resyStdcost = await StdcostpriceApi.queryStdcostpriceByItemCode(param)
console.log('resyStdcost',resyStdcost) console.log('resyStdcost',resyStdcost)

3
src/views/wms/issueManage/productionscrap/productionscrapRequestMain/productionscrapRequestMain.data.ts

@ -1807,7 +1807,8 @@ export const ProductionscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]
tableForm: { tableForm: {
type: 'InputNumber', type: 'InputNumber',
min: 0, min: 0,
precision: 2 precision: 2,
maxField:'maxQty'
} }
}, },
{ {

7
src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

@ -516,6 +516,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
// buttonOperationClick(newRow,'Bom',tableData.value.indexOf(newRow),true) // buttonOperationClick(newRow,'Bom',tableData.value.indexOf(newRow),true)
// } // }
tableData.value.push(newRow) tableData.value.push(newRow)
if(newRow['fromLocationCode']){
buttonOperationClick(newRow,'Bom',tableData.value.indexOf(newRow),true)
}
}) })
}else if(formField == 'bomVersion'){ }else if(formField == 'bomVersion'){
@ -561,6 +564,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
} }
} }
}) })
}else if(formField == 'workshopCode'){
//
setV['productionLineCode'] = ''//线
tableData.value = []
} }
formRef.setValues(setV) formRef.setValues(setV)
if(formField == 'costCenterCode'){ if(formField == 'costCenterCode'){

3
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -435,8 +435,7 @@ const getSearchTableData = async (number,formField,searchField)=>{
{ {
label: t('ts.创建供应商发货申请'), label: t('ts.创建供应商发货申请'),
name: 'supplierdeliver', name: 'supplierdeliver',
hide: isShowMainButton(row, ['4']), hide: !(!isShowMainButton(row, ['4'])&&row.shippedQty<row.planQty),
// hide: !(!isShowMainButton(row, ['4'])&&row.shippedQty<row.planQty),
type: 'primary', type: 'primary',
icon: '', icon: '',
color: '', color: '',

Loading…
Cancel
Save