Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
8c1213a6
Commit
8c1213a6
authored
Feb 02, 2019
by
cjl
Browse files
单据编号和单据日期添加只读属性
parent
5f5e9f3c
Changes
20
Show whitespace changes
Inline
Side-by-side
erp_web/pages/financial/advance_in.html
View file @
8c1213a6
...
@@ -68,12 +68,12 @@
...
@@ -68,12 +68,12 @@
<td
style=
"padding:5px;width:170px;"
>
<td
style=
"padding:5px;width:170px;"
>
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
style=
"width:140px;"
readonly
/>
</td>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:170px;"
>
<td
style=
"padding:5px;width:170px;"
>
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
readonly
/>
</td>
</td>
<td
style=
"width:100px;"
></td>
<td
style=
"width:100px;"
></td>
</tr>
</tr>
...
...
erp_web/pages/financial/giro.html
View file @
8c1213a6
...
@@ -64,12 +64,12 @@
...
@@ -64,12 +64,12 @@
<td
style=
"padding:5px;width:170px;"
>
<td
style=
"padding:5px;width:170px;"
>
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
style=
"width:140px;"
readonly
/>
</td>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:170px;"
>
<td
style=
"padding:5px;width:170px;"
>
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
readonly
/>
</td>
</td>
<td
style=
"width:70px;"
></td>
<td
style=
"width:70px;"
></td>
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
...
...
erp_web/pages/financial/item_in.html
View file @
8c1213a6
...
@@ -68,12 +68,12 @@
...
@@ -68,12 +68,12 @@
<td
style=
"padding:5px;width:170px;"
>
<td
style=
"padding:5px;width:170px;"
>
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
style=
"width:140px;"
readonly
/>
</td>
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:170px;"
>
<td
style=
"padding:5px;width:170px;"
>
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
readonly
/>
</td>
</td>
<td
style=
"width:100px;"
></td>
<td
style=
"width:100px;"
></td>
</tr>
</tr>
...
...
erp_web/pages/financial/item_out.html
View file @
8c1213a6
...
@@ -68,12 +68,12 @@
...
@@ -68,12 +68,12 @@
<td
style=
"padding:5px;width:170px;"
>
<td
style=
"padding:5px;width:170px;"
>
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
style=
"width:140px;"
readonly
/>
</td>
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:170px;"
>
<td
style=
"padding:5px;width:170px;"
>
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
readonly
/>
</td>
</td>
<td
style=
"width:100px;"
></td>
<td
style=
"width:100px;"
></td>
</tr>
</tr>
...
...
erp_web/pages/financial/money_in.html
View file @
8c1213a6
...
@@ -68,12 +68,12 @@
...
@@ -68,12 +68,12 @@
<td
style=
"padding:5px;width:170px;"
>
<td
style=
"padding:5px;width:170px;"
>
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
style=
"width:140px;"
readonly
/>
</td>
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:170px;"
>
<td
style=
"padding:5px;width:170px;"
>
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
readonly
/>
</td>
</td>
<td
style=
"width:100px;"
></td>
<td
style=
"width:100px;"
></td>
</tr>
</tr>
...
...
erp_web/pages/financial/money_out.html
View file @
8c1213a6
...
@@ -67,12 +67,12 @@
...
@@ -67,12 +67,12 @@
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:170px;"
>
<td
style=
"padding:5px;width:170px;"
>
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
class=
"txt Wdate"
style=
"width:140px;"
readonly
/>
</td>
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:170px;"
>
<td
style=
"padding:5px;width:170px;"
>
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
readonly
/>
</td>
</td>
<td
style=
"width:100px;"
></td>
<td
style=
"width:100px;"
></td>
</tr>
</tr>
...
...
erp_web/pages/materials/allocation_out_list.html
View file @
8c1213a6
...
@@ -65,12 +65,12 @@
...
@@ -65,12 +65,12 @@
<td
style=
"padding:5px;width:170px;"
>
<td
style=
"padding:5px;width:170px;"
>
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
style=
"width:140px;"
readonly
/>
</td>
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width:140px;"
/>
data-options=
"required:true,validType:'length[2,30]'"
style=
"width:140px;"
readonly
/>
</td>
</td>
<td
style=
"width:80px;"
></td>
<td
style=
"width:80px;"
></td>
<td
style=
"padding:5px;width:170px;"
></td>
<td
style=
"padding:5px;width:170px;"
></td>
...
...
erp_web/pages/materials/assemble_list.html
View file @
8c1213a6
...
@@ -70,12 +70,12 @@
...
@@ -70,12 +70,12 @@
<td
style=
"padding:5px;width:170px;"
>
<td
style=
"padding:5px;width:170px;"
>
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
style=
"width:140px;"
readonly
/>
</td>
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width:140px;"
/>
data-options=
"required:true,validType:'length[2,30]'"
style=
"width:140px;"
readonly
/>
</td>
</td>
<td
style=
"width:80px;"
></td>
<td
style=
"width:80px;"
></td>
<td
style=
"padding:5px;width:170px;"
></td>
<td
style=
"padding:5px;width:170px;"
></td>
...
...
erp_web/pages/materials/disassemble_list.html
View file @
8c1213a6
...
@@ -70,12 +70,12 @@
...
@@ -70,12 +70,12 @@
<td
style=
"padding:5px;width:170px;"
>
<td
style=
"padding:5px;width:170px;"
>
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
style=
"width:140px;"
readonly
/>
</td>
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width:140px;"
/>
data-options=
"required:true,validType:'length[2,30]'"
style=
"width:140px;"
readonly
/>
</td>
</td>
<td
style=
"width:80px;"
></td>
<td
style=
"width:80px;"
></td>
<td
style=
"padding:5px;width:170px;"
></td>
<td
style=
"padding:5px;width:170px;"
></td>
...
...
erp_web/pages/materials/gift_out_list.html
View file @
8c1213a6
...
@@ -65,12 +65,12 @@
...
@@ -65,12 +65,12 @@
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
style=
"width:140px;"
readonly
/>
</td>
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
readonly
/>
</td>
</td>
<td></td>
<td></td>
<td></td>
<td></td>
...
...
erp_web/pages/materials/gift_recharge_list.html
View file @
8c1213a6
...
@@ -65,12 +65,12 @@
...
@@ -65,12 +65,12 @@
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width: 140px;"
/>
style=
"width: 140px;"
readonly
/>
</td>
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
readonly
/>
</td>
</td>
<td></td>
<td></td>
<td></td>
<td></td>
...
...
erp_web/pages/materials/other_in_list.html
View file @
8c1213a6
...
@@ -75,12 +75,12 @@
...
@@ -75,12 +75,12 @@
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
style=
"width:140px;"
readonly
/>
</td>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
readonly
/>
</td>
</td>
<td
style=
"width:70px;"
></td>
<td
style=
"width:70px;"
></td>
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
...
...
erp_web/pages/materials/other_out_list.html
View file @
8c1213a6
...
@@ -69,12 +69,12 @@
...
@@ -69,12 +69,12 @@
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
style=
"width:140px;"
readonly
/>
</td>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
readonly
/>
</td>
</td>
<td
style=
"width:70px;"
></td>
<td
style=
"width:70px;"
></td>
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
...
...
erp_web/pages/materials/purchase_back_list.html
View file @
8c1213a6
...
@@ -75,12 +75,12 @@
...
@@ -75,12 +75,12 @@
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
style=
"width:140px;"
readonly
/>
</td>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
readonly
/>
</td>
</td>
<td
style=
"width:70px;"
></td>
<td
style=
"width:70px;"
></td>
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
...
...
erp_web/pages/materials/purchase_in_list.html
View file @
8c1213a6
...
@@ -75,12 +75,12 @@
...
@@ -75,12 +75,12 @@
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
style=
"width:140px;"
readonly
/>
</td>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
readonly
/>
</td>
</td>
<td
style=
"width:70px;"
></td>
<td
style=
"width:70px;"
></td>
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
...
...
erp_web/pages/materials/retail_back_list.html
View file @
8c1213a6
...
@@ -69,12 +69,12 @@
...
@@ -69,12 +69,12 @@
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width: 140px;"
/>
style=
"width: 140px;"
readonly
/>
</td>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
readonly
/>
</td>
</td>
<td
style=
"width:70px;"
></td>
<td
style=
"width:70px;"
></td>
<td
style=
"padding:5px;width:150px;"
></td>
<td
style=
"padding:5px;width:150px;"
></td>
...
...
erp_web/pages/materials/retail_out_list.html
View file @
8c1213a6
...
@@ -69,12 +69,12 @@
...
@@ -69,12 +69,12 @@
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width: 140px;"
/>
style=
"width: 140px;"
readonly
/>
</td>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
readonly
/>
</td>
</td>
<td
style=
"width:70px;"
>
付款类型:
</td>
<td
style=
"width:70px;"
>
付款类型:
</td>
<td
style=
"padding:5px;width:150px;"
>
<td
style=
"padding:5px;width:150px;"
>
...
...
erp_web/pages/materials/sale_back_list.html
View file @
8c1213a6
...
@@ -73,12 +73,12 @@
...
@@ -73,12 +73,12 @@
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
style=
"width:140px;"
readonly
/>
</td>
</td>
<td>
单据编号:
</td>
<td>
单据编号:
</td>
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
readonly
/>
</td>
</td>
<td
style=
"width:100px;"
></td>
<td
style=
"width:100px;"
></td>
</tr>
</tr>
...
...
erp_web/pages/materials/sale_out_list.html
View file @
8c1213a6
...
@@ -73,12 +73,12 @@
...
@@ -73,12 +73,12 @@
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
style=
"width:140px;"
readonly
/>
</td>
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
<input
name=
"Number"
id=
"Number"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
readonly
/>
</td>
</td>
<td
style=
"width:100px;"
></td>
<td
style=
"width:100px;"
></td>
</tr>
</tr>
...
...
src/main/java/com/jsh/erp/service/depotHead/DepotHeadService.java
View file @
8c1213a6
...
@@ -315,20 +315,25 @@ public class DepotHeadService {
...
@@ -315,20 +315,25 @@ public class DepotHeadService {
//判断用户是否已经登录过,登录过不再处理
//判断用户是否已经登录过,登录过不再处理
User
userInfo
=
userService
.
getCurrentUser
();
User
userInfo
=
userService
.
getCurrentUser
();
depotHead
.
setOperpersonname
(
userInfo
==
null
?
null
:
userInfo
.
getUsername
());
depotHead
.
setOperpersonname
(
userInfo
==
null
?
null
:
userInfo
.
getUsername
());
//构造新的编号
/**
String
dNumber
=
depotHead
.
getDefaultnumber
();
* 2019-02-02
String
number
=
dNumber
.
substring
(
0
,
12
);
//截取前缀
* 使用最新生成的唯一单据编号,理论上可以保证唯一性
String
beginTime
=
Tools
.
getNow
()
+
" 00:00:00"
;
* 保存时就不再加判断,提高程序的效率
String
endTime
=
Tools
.
getNow
()
+
" 23:59:59"
;
* */
String
newNumber
=
buildNumber
(
depotHead
.
getType
(),
depotHead
.
getSubtype
(),
beginTime
,
endTime
);
//从数据库查询最新的编号+1,这样能防止重复
// //构造新的编号
String
allNewNumber
=
number
+
newNumber
;
// String dNumber = depotHead.getDefaultnumber();
String
frontNumber
=
depotHead
.
getNumber
();
// String number = dNumber.substring(0, 12); //截取前缀
if
(
frontNumber
.
indexOf
(
number
)
>
-
1
)
{
// String beginTime = Tools.getNow() + " 00:00:00";
depotHead
.
setNumber
(
allNewNumber
);
//从后台取值
// String endTime = Tools.getNow() + " 23:59:59";
}
else
{
// String newNumber = buildNumber(depotHead.getType(), depotHead.getSubtype(), beginTime, endTime); //从数据库查询最新的编号+1,这样能防止重复
depotHead
.
setNumber
(
frontNumber
);
//从前端文本框里面获取
// String allNewNumber = number + newNumber;
}
// String frontNumber = depotHead.getNumber();
depotHead
.
setDefaultnumber
(
allNewNumber
);
//初始编号,一直都从后台取值
// if(frontNumber.indexOf(number) > -1) {
// depotHead.setNumber(allNewNumber); //从后台取值
// } else {
// depotHead.setNumber(frontNumber); //从前端文本框里面获取
// }
// depotHead.setDefaultnumber(allNewNumber); //初始编号,一直都从后台取值
depotHead
.
setCreatetime
(
new
Timestamp
(
System
.
currentTimeMillis
()));
depotHead
.
setCreatetime
(
new
Timestamp
(
System
.
currentTimeMillis
()));
depotHead
.
setStatus
(
false
);
depotHead
.
setStatus
(
false
);
depotHeadMapperEx
.
adddepotHead
(
depotHead
);
depotHeadMapperEx
.
adddepotHead
(
depotHead
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment